mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-04-01 11:54:10 +00:00
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>
This commit is contained in:
parent
b05317221b
commit
0fccc62218
1 changed files with 1 additions and 1 deletions
|
@ -1462,7 +1462,7 @@ sub process {
|
||||||
#80 column limit
|
#80 column limit
|
||||||
if ($line =~ /^\+/ && $prevrawline !~ /\/\*\*/ &&
|
if ($line =~ /^\+/ && $prevrawline !~ /\/\*\*/ &&
|
||||||
$rawline !~ /^.\s*\*\s*\@$Ident\s/ &&
|
$rawline !~ /^.\s*\*\s*\@$Ident\s/ &&
|
||||||
!($line =~ /^\+\s*$logFunctions\s*\(\s*(?:(KERN_\S+\s*|[^"]*))?"[X\t]*"\s*(?:,|\)\s*;)\s*$/ ||
|
!($line =~ /^\+\s*$logFunctions\s*\(\s*(?:(KERN_\S+\s*|[^"]*))?"[X\t]*"\s*(?:|,|\)\s*;)\s*$/ ||
|
||||||
$line =~ /^\+\s*"[^"]*"\s*(?:\s*|,|\)\s*;)\s*$/) &&
|
$line =~ /^\+\s*"[^"]*"\s*(?:\s*|,|\)\s*;)\s*$/) &&
|
||||||
$length > 80)
|
$length > 80)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue