aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/util/probe-event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c
index 099336ed34b4..4bde988a0b04 100644
--- a/tools/perf/util/probe-event.c
+++ b/tools/perf/util/probe-event.c
@@ -309,7 +309,7 @@ static int __show_one_line(FILE *fp, int l, bool skip, bool show_num)
309 return 1; 309 return 1;
310error: 310error:
311 if (ferror(fp)) { 311 if (ferror(fp)) {
312 pr_warning("Source file is shorter than expected.\n"); 312 pr_warning("File read error: %s\n", strerror(errno));
313 return -1; 313 return -1;
314 } 314 }
315 return 0; 315 return 0;