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)
commit243f3803cf2a3665092c5fd6f924f453694681a6
treea05005eb618c2770a2e56c644ae04d8e36c58c89
parent9a4cad4e25b91f48494f13fce3d25ea44bec7472
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