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);