From: Franck Bui-Huu Date: Mon, 20 Dec 2010 14:18:04 +0000 (+0100) Subject: perf probe: Don't always consider EOF as an error when listing source code X-Git-Tag: v2.6.38-rc1~490^2~24^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fde52dbd7f71934aba4e150f3d1d51e826a08850;p=pandora-kernel.git 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 Cc: Masami Hiramatsu LKML-Reference: <1292854685-8230-6-git-send-email-fbuihuu@gmail.com> Signed-off-by: Franck Bui-Huu Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed