Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186302
b: refs/heads/master
c: 691e669
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and Linus Torvalds committed Mar 6, 2010
1 parent 2c78593 commit f5a6d16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 42bdf74c95b6935f3c09a09ba4bead6cad11b540
refs/heads/master: 691e669ba8c64d31ac08d87b1751e6acfa3ff65e
10 changes: 9 additions & 1 deletion trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,14 @@ sub help {
atomic_t
)};

our $logFunctions = qr{(?x:
printk|
pr_(debug|dbg|vdbg|devel|info|warning|err|notice|alert|crit|emerg|cont)|
dev_(printk|dbg|vdbg|info|warn|err|notice|alert|crit|emerg|WARN)|
WARN|
panic
)};

our @typeList = (
qr{void},
qr{(?:unsigned\s+)?char},
Expand Down Expand Up @@ -1377,7 +1385,7 @@ sub process {
#80 column limit
if ($line =~ /^\+/ && $prevrawline !~ /\/\*\*/ &&
$rawline !~ /^.\s*\*\s*\@$Ident\s/ &&
$line !~ /^\+\s*printk\s*\(\s*(?:KERN_\S+\s*)?"[X\t]*"\s*(?:,|\)\s*;)\s*$/ &&
$line !~ /^\+\s*$logFunctions\s*\(\s*(?:KERN_\S+\s*)?"[X\t]*"\s*(?:,|\)\s*;)\s*$/ &&
$length > 80)
{
WARN("line over 80 characters\n" . $herecurr);
Expand Down

0 comments on commit f5a6d16

Please sign in to comment.