]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
checkpatch: update suggested printk conversions
authorJoe Perches <joe@perches.com>
Wed, 26 Sep 2012 01:34:31 +0000 (11:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 26 Sep 2012 05:45:25 +0000 (15:45 +1000)
commit9a4ed993254351f01a5dce07a9e201a500d9144b
treec6e183420871fa86bc20af9b89f04c1f371dc218
parent34fc17624f2886794a9b9682775cf955f3ab3d2d
checkpatch: update suggested printk conversions

Direct conversion of printk(KERN_<LEVEL>...  to pr_<level> isn't the
preferred conversion when a struct net_device or struct device is
available.

Hint that using netdev_<level> or dev_<level> is preferred to using
pr_<level>.  Add netdev_dbg and dev_dbg variants too.

Miscellaneous whitespace neatening of a misplaced close brace.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Greg KH <gregkh@linuxfoundation.org>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl