From: Andy Whitcroft Date: Thu, 24 Jul 2008 04:29:01 +0000 (-0700) Subject: checkpatch: allow printk strings to exceed 80 characters to maintain their searchability X-Git-Tag: v2.6.27-rc1~709 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f4c014c0dede10cc0a8463e748892e738e190699;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 89177c349f9..614999f29aa 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1138,7 +1138,9 @@ sub process { } #80 column limit if ($line =~ /^\+/ && $prevrawline !~ /\/\*\*/ && - $rawline !~ /^.\s*\*\s*\@$Ident\s/ && $length > 80) + $rawline !~ /^.\s*\*\s*\@$Ident\s/ && + $line !~ /^\+\s*printk\s*\(\s*(?:KERN_\S+\s*)?"[X\t]*"\s*(?:,|\)\s*;)\s*$/ && + $length > 80) { WARN("line over 80 characters\n" . $herecurr); }