diff options
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index cec2b8cee80c..74776558ddfb 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -304,7 +304,7 @@ static size_t hists__fprintf_nr_sample_events(struct hists *self, | |||
304 | if (evname != NULL) | 304 | if (evname != NULL) |
305 | ret += fprintf(fp, " of event '%s'", evname); | 305 | ret += fprintf(fp, " of event '%s'", evname); |
306 | 306 | ||
307 | ret += fprintf(fp, "\n# Event count (approx.): %lu", nr_events); | 307 | ret += fprintf(fp, "\n# Event count (approx.): %" PRIu64, nr_events); |
308 | return ret + fprintf(fp, "\n#\n"); | 308 | return ret + fprintf(fp, "\n#\n"); |
309 | } | 309 | } |
310 | 310 | ||
@@ -676,14 +676,10 @@ int cmd_report(int argc, const char **argv, const char *prefix __used) | |||
676 | 676 | ||
677 | } | 677 | } |
678 | 678 | ||
679 | if (strcmp(report.input_name, "-") != 0) { | 679 | if (strcmp(report.input_name, "-") != 0) |
680 | if (report.use_gtk) | 680 | setup_browser(true); |
681 | perf_gtk_setup_browser(argc, argv, true); | 681 | else |
682 | else | ||
683 | setup_browser(true); | ||
684 | } else { | ||
685 | use_browser = 0; | 682 | use_browser = 0; |
686 | } | ||
687 | 683 | ||
688 | /* | 684 | /* |
689 | * Only in the newt browser we are doing integrated annotation, | 685 | * Only in the newt browser we are doing integrated annotation, |