Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330096
b: refs/heads/master
c: 8f26b83
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and Linus Torvalds committed Oct 5, 2012
1 parent 5283469 commit 743dd99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: fa64205df9dfd7b7662cc64a7e82115c00e428e5
refs/heads/master: 8f26b8376faad26372a579606ecbd77b20e99dd8
6 changes: 4 additions & 2 deletions trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ sub top_of_kernel_tree {
}
}
return 1;
}
}

sub parse_email {
my ($formatted_email) = @_;
Expand Down Expand Up @@ -2399,8 +2399,10 @@ sub process {
my $orig = $1;
my $level = lc($orig);
$level = "warn" if ($level eq "warning");
my $level2 = $level;
$level2 = "dbg" if ($level eq "debug");
WARN("PREFER_PR_LEVEL",
"Prefer pr_$level(... to printk(KERN_$1, ...\n" . $herecurr);
"Prefer netdev_$level2(netdev, ... then dev_$level2(dev, ... then pr_$level(... to printk(KERN_$orig ...\n" . $herecurr);
}

if ($line =~ /\bpr_warning\s*\(/) {
Expand Down

0 comments on commit 743dd99

Please sign in to comment.