diff options
Diffstat (limited to 'tools/perf/ui/hist.c')
-rw-r--r-- | tools/perf/ui/hist.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/perf/ui/hist.c b/tools/perf/ui/hist.c index 0a5281fe41d6..6e639b506829 100644 --- a/tools/perf/ui/hist.c +++ b/tools/perf/ui/hist.c | |||
@@ -472,11 +472,15 @@ int hist_entry__period_snprintf(struct perf_hpp *hpp, struct hist_entry *he, | |||
472 | return 0; | 472 | return 0; |
473 | 473 | ||
474 | perf_hpp__for_each_format(fmt) { | 474 | perf_hpp__for_each_format(fmt) { |
475 | /* | ||
476 | * If there's no field_sep, we still need | ||
477 | * to display initial ' '. | ||
478 | */ | ||
475 | if (!sep || !first) { | 479 | if (!sep || !first) { |
476 | ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); | 480 | ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); |
477 | advance_hpp(hpp, ret); | 481 | advance_hpp(hpp, ret); |
482 | } else | ||
478 | first = false; | 483 | first = false; |
479 | } | ||
480 | 484 | ||
481 | if (color && fmt->color) | 485 | if (color && fmt->color) |
482 | ret = fmt->color(hpp, he); | 486 | ret = fmt->color(hpp, he); |