aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r--tools/perf/builtin-script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c
index 48e940efb3cb..b3bf35512d21 100644
--- a/tools/perf/builtin-script.c
+++ b/tools/perf/builtin-script.c
@@ -606,7 +606,7 @@ static int perf_sample__fprintf_start(struct perf_sample *sample,
606 if (PRINT_FIELD(COMM)) { 606 if (PRINT_FIELD(COMM)) {
607 if (latency_format) 607 if (latency_format)
608 printed += fprintf(fp, "%8.8s ", thread__comm_str(thread)); 608 printed += fprintf(fp, "%8.8s ", thread__comm_str(thread));
609 else if (PRINT_FIELD(IP) && symbol_conf.use_callchain) 609 else if (PRINT_FIELD(IP) && evsel__has_callchain(evsel) && symbol_conf.use_callchain)
610 printed += fprintf(fp, "%s ", thread__comm_str(thread)); 610 printed += fprintf(fp, "%s ", thread__comm_str(thread));
611 else 611 else
612 printed += fprintf(fp, "%16s ", thread__comm_str(thread)); 612 printed += fprintf(fp, "%16s ", thread__comm_str(thread));