]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
checkpatch: update suggested printk conversions
authorJoe Perches <joe@perches.com>
Thu, 13 Sep 2012 01:01:14 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 13 Sep 2012 07:28:10 +0000 (17:28 +1000)
commit8248d02fee9c83b0a15bc06f67f3902c7ddd31ca
tree1de1f3bd0df676f9e624f936101499ac47cc52b0
parent83adad4091a56916708d4ea57e44b89e55bb5d08
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