]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: suggest pr_<level> over printk(KERN_<LEVEL>
authorJoe Perches <joe@perches.com>
Thu, 31 May 2012 23:26:09 +0000 (16:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 1 Jun 2012 00:49:27 +0000 (17:49 -0700)
commit9a0cc5dc64395a7bd979d3976f48ca8029fe4603
treea05005eb618c2770a2e56c644ae04d8e36c58c89
parent5a35f243a177ef0ba94d6be80c76ae2b77409e86
checkpatch: suggest pr_<level> over printk(KERN_<LEVEL>

Suggest the shorter pr_<level> instead of printk(KERN_<LEVEL>.

Prefer to use pr_<level> over bare printks.
Prefer to use pr_warn over pr_warning.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@shadowen.org>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl