summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorFranck Bui-Huu <fbuihuu@gmail.com>2010-12-20 17:18:04 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-12-21 21:20:12 +0300
commitfde52dbd7f71934aba4e150f3d1d51e826a08850 (patch)
tree1b96f7055ad29b37a25e2de748f128ae5d44fb77 /security
parent9d95b580a8d64ef4d1660a21a9de0658fe29f041 (diff)
downloadlinux-fde52dbd7f71934aba4e150f3d1d51e826a08850.tar.xz
perf probe: Don't always consider EOF as an error when listing source code
When listing a whole file or a function which is located at the end, perf-probe -L output wrongly: "Source file is shorter than expected.". This is because show_one_line() always consider EOF as an error. This patch fixes this by not considering EOF as an error when dumping the trailing lines. Otherwise it's still an error and perf-probe still outputs its warning. Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> LKML-Reference: <1292854685-8230-6-git-send-email-fbuihuu@gmail.com> Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions