Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752739AbcKLVRS (ORCPT ); Sat, 12 Nov 2016 16:17:18 -0500 Received: from terminus.zytor.com ([198.137.202.10]:43480 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938950AbcKLVRD (ORCPT ); Sat, 12 Nov 2016 16:17:03 -0500 Date: Sat, 12 Nov 2016 02:53:08 -0800 From: tip-bot for Namhyung Kim Message-ID: Cc: namhyung@kernel.org, tglx@linutronix.de, peterz@infradead.org, acme@redhat.com, mingo@kernel.org, markus@trippelsdorf.de, jolsa@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com Reply-To: linux-kernel@vger.kernel.org, hpa@zytor.com, markus@trippelsdorf.de, jolsa@kernel.org, mingo@kernel.org, acme@redhat.com, peterz@infradead.org, tglx@linutronix.de, namhyung@kernel.org In-Reply-To: <20161108130833.9263-2-namhyung@kernel.org> References: <20161108130833.9263-2-namhyung@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf hists browser: Fix indentation of folded sign on --hierarchy Git-Commit-ID: 3d9f4683929a968dc9b9493f4e608b109ad292a2 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 Content-Length: 1680 Lines: 45 Commit-ID: 3d9f4683929a968dc9b9493f4e608b109ad292a2 Gitweb: http://git.kernel.org/tip/3d9f4683929a968dc9b9493f4e608b109ad292a2 Author: Namhyung Kim AuthorDate: Tue, 8 Nov 2016 22:08:30 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 9 Nov 2016 11:20:56 -0300 perf hists browser: Fix indentation of folded sign on --hierarchy It should indent 2 spaces for folded sign and a whitespace. Signed-off-by: Namhyung Kim Tested-by: Markus Trippelsdorf Cc: Jiri Olsa Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20161108130833.9263-2-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/ui/browsers/hists.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c index 5adedc1..225ef2a 100644 --- a/tools/perf/ui/browsers/hists.c +++ b/tools/perf/ui/browsers/hists.c @@ -1337,8 +1337,8 @@ static int hist_browser__show_hierarchy_entry(struct hist_browser *browser, } if (first) { - ui_browser__printf(&browser->b, "%c", folded_sign); - width--; + ui_browser__printf(&browser->b, "%c ", folded_sign); + width -= 2; first = false; } else { ui_browser__printf(&browser->b, " "); @@ -1555,7 +1555,7 @@ static int hists_browser__scnprintf_hierarchy_headers(struct hist_browser *brows int indent = hists->nr_hpp_node - 2; bool first_node, first_col; - ret = scnprintf(buf, size, " "); + ret = scnprintf(buf, size, " "); if (advance_hpp_check(&dummy_hpp, ret)) return ret;