Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4c014c0 authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Linus Torvalds
Browse files

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: default avatarAndy Whitcroft <apw@shadowen.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 548596d5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);
		}