diff options
author | Franck Bui-Huu <vagabon.xyz@gmail.com> | 2010-12-22 11:37:13 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-12-22 17:32:08 -0500 |
commit | 32b2b6ec57a3adb3ab7215fbf36ec61c15de06ee (patch) | |
tree | 7066b4d10a13f46473a31f7a78b51bb210b54a07 /tools/perf/util/probe-event.c | |
parent | d3678758048308049cdad31ec3eae063be17c0db (diff) |
perf probe: Fix wrong warning in __show_one_line() if read(1) errors happen
This was introduced by commit fde52dbd7f71934aba4e150f3d1d51e826a08850.
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
LKML-Reference: <m3y67hsr0m.fsf@gmail.com>
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/probe-event.c')
-rw-r--r-- | tools/perf/util/probe-event.c | 2 |
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; |
310 | error: | 310 | error: |
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; |