aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2008-07-24 00:29:01 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-24 13:47:25 -0400
commitf4c014c0dede10cc0a8463e748892e738e190699 (patch)
treee4eb11df93e1d716db70c5bd20fa3cb8c6106210 /scripts/checkpatch.pl
parent548596d523d83dff5a670beb84be0daf4c3bcd16 (diff)
checkpatch: allow printk strings to exceed 80 characters to maintain their searchability
Allow printk strings to break the 80 character width limits, thus keeping them complete and searchable. Signed-off-by: Andy Whitcroft <apw@shadowen.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 89177c349f93..614999f29aa0 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1138,7 +1138,9 @@ sub process {
1138 } 1138 }
1139#80 column limit 1139#80 column limit
1140 if ($line =~ /^\+/ && $prevrawline !~ /\/\*\*/ && 1140 if ($line =~ /^\+/ && $prevrawline !~ /\/\*\*/ &&
1141 $rawline !~ /^.\s*\*\s*\@$Ident\s/ && $length > 80) 1141 $rawline !~ /^.\s*\*\s*\@$Ident\s/ &&
1142 $line !~ /^\+\s*printk\s*\(\s*(?:KERN_\S+\s*)?"[X\t]*"\s*(?:,|\)\s*;)\s*$/ &&
1143 $length > 80)
1142 { 1144 {
1143 WARN("line over 80 characters\n" . $herecurr); 1145 WARN("line over 80 characters\n" . $herecurr);
1144 } 1146 }