aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 780c91d82aa9..ea28336ea2a5 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2166,7 +2166,11 @@ sub process {
2166 if ($showfile) { 2166 if ($showfile) {
2167 $prefix = "$realfile:$realline: " 2167 $prefix = "$realfile:$realline: "
2168 } elsif ($emacs) { 2168 } elsif ($emacs) {
2169 $prefix = "$filename:$linenr: "; 2169 if ($file) {
2170 $prefix = "$filename:$realline: ";
2171 } else {
2172 $prefix = "$filename:$linenr: ";
2173 }
2170 } 2174 }
2171 2175
2172 if ($found_file) { 2176 if ($found_file) {