diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/event.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c index 2477270c1d3f..23d5dfd4ed73 100644 --- a/tools/perf/util/event.c +++ b/tools/perf/util/event.c | |||
@@ -626,8 +626,10 @@ static void dso__calc_col_width(struct dso *self) | |||
626 | if (!symbol_conf.col_width_list_str && !symbol_conf.field_sep && | 626 | if (!symbol_conf.col_width_list_str && !symbol_conf.field_sep && |
627 | (!symbol_conf.dso_list || | 627 | (!symbol_conf.dso_list || |
628 | strlist__has_entry(symbol_conf.dso_list, self->name))) { | 628 | strlist__has_entry(symbol_conf.dso_list, self->name))) { |
629 | unsigned int slen = strlen(self->name); | 629 | u16 slen = self->short_name_len; |
630 | if (slen > dsos__col_width) | 630 | if (verbose) |
631 | slen = self->long_name_len; | ||
632 | if (dsos__col_width < slen) | ||
631 | dsos__col_width = slen; | 633 | dsos__col_width = slen; |
632 | } | 634 | } |
633 | 635 | ||