Skip to contentSkip to conversation

perf annotate browser: Use a vertical line as percentage separator

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Apr 27, 2012 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  cf2dacc5608ca950d6a7a92bf6a5f9f9bcf13b92
Gitweb:     http://git.kernel.org/tip/cf2dacc5608ca950d6a7a92bf6a5f9f9bcf13b92
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Thu, 19 Apr 2012 15:19:17 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Thu, 19 Apr 2012 17:08:31 -0300

perf annotate browser: Use a vertical line as percentage separator

Where we had ':'.

Cc David Ahern <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Mike Galbraith <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Stephane Eranian <[email protected]>
---
 tools/perf/ui/browsers/annotate.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
tools/perf/ui/browsers/annotate.c +4 -2
index 34b86ea..e760326 100644
@@ -71,8 +71,10 @@ static void annotate_browser__write(struct ui_browser *self, void *entry, int ro
 		slsmg_write_nstring(" ", 9);
 	}
 
-	SLsmg_write_char(':');
-	slsmg_write_nstring(" ", 8);
+	SLsmg_set_char_set(1);
+	SLsmg_write_char(SLSMG_VLINE_CHAR);
+	SLsmg_set_char_set(0);
+	SLsmg_write_char(' ');
 
 	/* The scroll bar isn't being used */
 	if (!self->navkeypressed)