summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-annotate.c')
-rw-r--r--tools/perf/builtin-annotate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c
index 7f3c3fea67b4..67f9d9ffacfb 100644
--- a/tools/perf/builtin-annotate.c
+++ b/tools/perf/builtin-annotate.c
@@ -441,7 +441,7 @@ static int __cmd_annotate(struct perf_annotate *ann)
441 } 441 }
442 442
443 if (total_nr_samples == 0) { 443 if (total_nr_samples == 0) {
444 ui__error("The %s file has no samples!\n", session->data->file.path); 444 ui__error("The %s data has no samples!\n", session->data->path);
445 goto out; 445 goto out;
446 } 446 }
447 447
@@ -578,7 +578,7 @@ int cmd_annotate(int argc, const char **argv)
578 if (quiet) 578 if (quiet)
579 perf_quiet_option(); 579 perf_quiet_option();
580 580
581 data.file.path = input_name; 581 data.path = input_name;
582 582
583 annotate.session = perf_session__new(&data, false, &annotate.tool); 583 annotate.session = perf_session__new(&data, false, &annotate.tool);
584 if (annotate.session == NULL) 584 if (annotate.session == NULL)