mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-26 04:35:01 +00:00
checkpatch: report the right line # when using --emacs and --file
commit 34d8815f9512 ("checkpatch: add --showfile to allow input via pipe to show filenames") broke the --emacs with --file option. Fix it. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
100425deeb
commit
7d3a9f673e
@ -2166,7 +2166,11 @@ sub process {
|
||||
if ($showfile) {
|
||||
$prefix = "$realfile:$realline: "
|
||||
} elsif ($emacs) {
|
||||
$prefix = "$filename:$linenr: ";
|
||||
if ($file) {
|
||||
$prefix = "$filename:$realline: ";
|
||||
} else {
|
||||
$prefix = "$filename:$linenr: ";
|
||||
}
|
||||
}
|
||||
|
||||
if ($found_file) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user