From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932792AbcITVlf (ORCPT ); Tue, 20 Sep 2016 17:41:35 -0400 Received: from terminus.zytor.com ([198.137.202.10]:39064 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932426AbcITVle (ORCPT ); Tue, 20 Sep 2016 17:41:34 -0400 Date: Tue, 20 Sep 2016 14:41:11 -0700 From: tip-bot for Namhyung Kim Message-ID: Cc: namhyung@kernel.org, mingo@kernel.org, acme@redhat.com, linux-kernel@vger.kernel.org, hpa@zytor.com, a.p.zijlstra@chello.nl, andi@firstfloor.org, jolsa@kernel.org, tglx@linutronix.de Reply-To: jolsa@kernel.org, tglx@linutronix.de, hpa@zytor.com, a.p.zijlstra@chello.nl, andi@firstfloor.org, acme@redhat.com, linux-kernel@vger.kernel.org, namhyung@kernel.org, mingo@kernel.org In-Reply-To: <20160913074552.13284-6-namhyung@kernel.org> References: <20160913074552.13284-6-namhyung@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf ui/stdio: Rename print_hierarchy_header() Git-Commit-ID: 195bc0f8443d8d564ae95d2e9c19ac0edfd647c3 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: 195bc0f8443d8d564ae95d2e9c19ac0edfd647c3 Gitweb: http://git.kernel.org/tip/195bc0f8443d8d564ae95d2e9c19ac0edfd647c3 Author: Namhyung Kim AuthorDate: Tue, 13 Sep 2016 16:45:50 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 13 Sep 2016 16:41:36 -0300 perf ui/stdio: Rename print_hierarchy_header() Now the hists__fprintf_hierarchy_headers() is a simple wrapper passing field separator. Let's do it directly. Signed-off-by: Namhyung Kim Cc: Andi Kleen Cc: Jiri Olsa Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20160913074552.13284-6-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/ui/stdio/hist.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/tools/perf/ui/stdio/hist.c b/tools/perf/ui/stdio/hist.c index 18b4fd9..a57131e 100644 --- a/tools/perf/ui/stdio/hist.c +++ b/tools/perf/ui/stdio/hist.c @@ -528,8 +528,8 @@ static int print_hierarchy_indent(const char *sep, int indent, return fprintf(fp, "%-.*s", (indent - 2) * HIERARCHY_INDENT, line); } -static int print_hierarchy_header(struct hists *hists, struct perf_hpp *hpp, - const char *sep, FILE *fp) +static int hists__fprintf_hierarchy_headers(struct hists *hists, + struct perf_hpp *hpp, FILE *fp) { bool first_node, first_col; int indent; @@ -538,6 +538,7 @@ static int print_hierarchy_header(struct hists *hists, struct perf_hpp *hpp, unsigned header_width = 0; struct perf_hpp_fmt *fmt; struct perf_hpp_list_node *fmt_node; + const char *sep = symbol_conf.field_sep; indent = hists->nr_hpp_node; @@ -623,14 +624,6 @@ static int print_hierarchy_header(struct hists *hists, struct perf_hpp *hpp, return 2; } -static int -hists__fprintf_hierarchy_headers(struct hists *hists, - struct perf_hpp *hpp, - FILE *fp) -{ - return print_hierarchy_header(hists, hpp, symbol_conf.field_sep, fp); -} - static void fprintf_line(struct hists *hists, struct perf_hpp *hpp, int line, FILE *fp) {