]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: update suggested printk conversions
authorJoe Perches <joe@perches.com>
Fri, 21 Sep 2012 01:02:13 +0000 (11:02 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 21 Sep 2012 05:59:16 +0000 (15:59 +1000)
commit47e7f0ed6e4a89a283f70eb037be38420c284705
tree9edc35f80290e0e53d25a8ef8543af9d8a967fcc
parentb04153a4af97a6ff6e439d37210e87433c091336
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