From f82c24a851bce1c43373866cab2c7486a858bb7a Mon Sep 17 00:00:00 2001 From: Jiri Olsa Date: Sat, 20 Oct 2012 22:14:10 +0200 Subject: [PATCH] --- yaml --- r: 349883 b: refs/heads/master c: c0d246b85fc7d42688d7a5d999ea671777caf65b h: refs/heads/master i: 349881: d9c513f659a3b3c80022eeb79a402230246e43df 349879: 08da13c26f19abf52667a44532b273ce0876b929 v: v3 --- [refs] | 2 +- trunk/tools/perf/ui/hist.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 349daf6759ec..8f0454d2e4f7 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1240005e0d3a7e03c2fd05603fb01676e5a004f7 +refs/heads/master: c0d246b85fc7d42688d7a5d999ea671777caf65b diff --git a/trunk/tools/perf/ui/hist.c b/trunk/tools/perf/ui/hist.c index 0a5281fe41d6..6e639b506829 100644 --- a/trunk/tools/perf/ui/hist.c +++ b/trunk/tools/perf/ui/hist.c @@ -472,11 +472,15 @@ int hist_entry__period_snprintf(struct perf_hpp *hpp, struct hist_entry *he, return 0; perf_hpp__for_each_format(fmt) { + /* + * If there's no field_sep, we still need + * to display initial ' '. + */ if (!sep || !first) { ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); advance_hpp(hpp, ret); + } else first = false; - } if (color && fmt->color) ret = fmt->color(hpp, he);