Commit 0fccc6221821e07366aa44bca112c4edb6d04dd7
Committed by
Linus Torvalds
1 parent
b05317221b
Exists in
master
and in
20 other branches
checkpatch: fix defect in printk(KERN_<LEVEL> 80 column exceptions
Currently, printk lines with a only KERN_PREFIX and a quoted string without a comma or close paren that exceed 80 columns are flagged with a warning. ie: printk(KERN_WARNING "some long string that extends beond 80 cols..." "and is continued on another line\n"); Allow this form instead of emitting a warning. Signed-off-by: Joe Perches <joe@perches.com> Cc: Andy Whitcroft <apw@canonical.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
scripts/checkpatch.pl
... | ... | @@ -1462,7 +1462,7 @@ |
1462 | 1462 | #80 column limit |
1463 | 1463 | if ($line =~ /^\+/ && $prevrawline !~ /\/\*\*/ && |
1464 | 1464 | $rawline !~ /^.\s*\*\s*\@$Ident\s/ && |
1465 | - !($line =~ /^\+\s*$logFunctions\s*\(\s*(?:(KERN_\S+\s*|[^"]*))?"[X\t]*"\s*(?:,|\)\s*;)\s*$/ || | |
1465 | + !($line =~ /^\+\s*$logFunctions\s*\(\s*(?:(KERN_\S+\s*|[^"]*))?"[X\t]*"\s*(?:|,|\)\s*;)\s*$/ || | |
1466 | 1466 | $line =~ /^\+\s*"[^"]*"\s*(?:\s*|,|\)\s*;)\s*$/) && |
1467 | 1467 | $length > 80) |
1468 | 1468 | { |