Commit 32b2b6ec authored by Franck Bui-Huu's avatar Franck Bui-Huu Committed by Arnaldo Carvalho de Melo
Browse files

perf probe: Fix wrong warning in __show_one_line() if read(1) errors happen

This was introduced by commit fde52dbd


Cc: H. Peter Anvin <>
Cc: Masami Hiramatsu <>
Cc: Ingo Molnar <>
Cc: Thomas Gleixner <>
LKML-Reference: <>
Signed-off-by: default avatarFranck Bui-Huu <>
Signed-off-by: default avatarArnaldo Carvalho de Melo <>
parent d3678758
......@@ -309,7 +309,7 @@ static int __show_one_line(FILE *fp, int l, bool skip, bool show_num)
return 1;
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;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment