From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752261AbbCVKJR (ORCPT ); Sun, 22 Mar 2015 06:09:17 -0400 Received: from terminus.zytor.com ([198.137.202.10]:57006 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752205AbbCVKJO (ORCPT ); Sun, 22 Mar 2015 06:09:14 -0400 Date: Sun, 22 Mar 2015 03:08:38 -0700 From: tip-bot for Jiri Olsa Message-ID: Cc: hpa@zytor.com, paulus@samba.org, peterz@infradead.org, cjashfor@linux.vnet.ibm.com, tglx@linutronix.de, namhyung@kernel.org, acme@redhat.com, linux-kernel@vger.kernel.org, jolsa@kernel.org, mingo@kernel.org, david.ahern@oracle.com Reply-To: david.ahern@oracle.com, mingo@kernel.org, jolsa@kernel.org, linux-kernel@vger.kernel.org, acme@redhat.com, namhyung@kernel.org, tglx@linutronix.de, cjashfor@linux.vnet.ibm.com, peterz@infradead.org, hpa@zytor.com, paulus@samba.org To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf build: Rename feature_print_var_code to print_var_code Git-Commit-ID: 4b20d684b4e1d11795af8783b45f2149b0ba0faf X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 4b20d684b4e1d11795af8783b45f2149b0ba0faf Gitweb: http://git.kernel.org/tip/4b20d684b4e1d11795af8783b45f2149b0ba0faf Author: Jiri Olsa AuthorDate: Mon, 2 Mar 2015 13:30:30 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 18 Mar 2015 15:11:07 -0300 perf build: Rename feature_print_var_code to print_var_code As it has nothing to do with features and won't be moved into tools/build. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: David Ahern Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Link: http://lkml.kernel.org/n/tip-6qgf37nss4wwjatgj5i4ng0o@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/config/Makefile | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index b98ab77..489d333 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile @@ -776,8 +776,8 @@ define feature_print_status_code endif endef -feature_print_var = $(eval $(feature_print_var_code)) $(info $(MSG)) -define feature_print_var_code +print_var = $(eval $(print_var_code)) $(info $(MSG)) +define print_var_code MSG = $(shell printf '...%30s: %s' $(1) $($(1))) endef @@ -827,21 +827,22 @@ ifeq ($(feature_display),1) ifeq ($(dwarf-post-unwind),1) $(call feature_print_text,"DWARF post unwind library", $(dwarf-post-unwind-text)) endif + + ifneq ($(feature_verbose),1) + $(info ) + endif endif ifeq ($(feature_verbose),1) TMP := $(filter-out $(FEATURE_DISPLAY),$(FEATURE_TESTS)) $(foreach feat,$(TMP),$(call feature_print_status,$(feat),)) $(info ) - $(call feature_print_var,prefix) - $(call feature_print_var,bindir) - $(call feature_print_var,libdir) - $(call feature_print_var,sysconfdir) - $(call feature_print_var,LIBUNWIND_DIR) - $(call feature_print_var,LIBDW_DIR) -endif - -ifeq ($(feature_display),1) + $(call print_var,prefix) + $(call print_var,bindir) + $(call print_var,libdir) + $(call print_var,sysconfdir) + $(call print_var,LIBUNWIND_DIR) + $(call print_var,LIBDW_DIR) $(info ) endif