Skip to content

Commit

Permalink
perf probe: Fix wrong warning in __show_one_line() if read(1) errors …
Browse files Browse the repository at this point in the history
…happen

This was introduced by commit fde52db.

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>
  • Loading branch information
Franck Bui-Huu authored and Arnaldo Carvalho de Melo committed Dec 22, 2010
1 parent d367875 commit 32b2b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/util/probe-event.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ static int __show_one_line(FILE *fp, int l, bool skip, bool show_num)
return 1;
error:
if (ferror(fp)) {
pr_warning("Source file is shorter than expected.\n");
pr_warning("File read error: %s\n", strerror(errno));
return -1;
}
return 0;
Expand Down

0 comments on commit 32b2b6e

Please sign in to comment.