diff options
Diffstat (limited to 'tools/perf/ui/browsers/hists.c')
-rw-r--r-- | tools/perf/ui/browsers/hists.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c index 06e892f1f8ca..2cb39164a1cd 100644 --- a/tools/perf/ui/browsers/hists.c +++ b/tools/perf/ui/browsers/hists.c | |||
@@ -685,8 +685,10 @@ static u64 __hpp_get_##_field(struct hist_entry *he) \ | |||
685 | return he->stat._field; \ | 685 | return he->stat._field; \ |
686 | } \ | 686 | } \ |
687 | \ | 687 | \ |
688 | static int hist_browser__hpp_color_##_type(struct perf_hpp *hpp, \ | 688 | static int \ |
689 | struct hist_entry *he) \ | 689 | hist_browser__hpp_color_##_type(struct perf_hpp_fmt *fmt __maybe_unused,\ |
690 | struct perf_hpp *hpp, \ | ||
691 | struct hist_entry *he) \ | ||
690 | { \ | 692 | { \ |
691 | return __hpp__color_fmt(hpp, he, __hpp_get_##_field, _cb); \ | 693 | return __hpp__color_fmt(hpp, he, __hpp_get_##_field, _cb); \ |
692 | } | 694 | } |
@@ -762,9 +764,9 @@ static int hist_browser__show_entry(struct hist_browser *browser, | |||
762 | first = false; | 764 | first = false; |
763 | 765 | ||
764 | if (fmt->color) { | 766 | if (fmt->color) { |
765 | width -= fmt->color(&hpp, entry); | 767 | width -= fmt->color(fmt, &hpp, entry); |
766 | } else { | 768 | } else { |
767 | width -= fmt->entry(&hpp, entry); | 769 | width -= fmt->entry(fmt, &hpp, entry); |
768 | slsmg_printf("%s", s); | 770 | slsmg_printf("%s", s); |
769 | } | 771 | } |
770 | } | 772 | } |