include/linux/netdevice.h: Add netif_printk helpers
authorJoe Perches <joe@perches.com>
Tue, 9 Feb 2010 11:49:49 +0000 (11:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Feb 2010 21:27:45 +0000 (13:27 -0800)
commitb3d95c5c93d4b57eaea0ad3f582b08a6b5fb3eb1
tree3dc48783dc30ed1769b3a50c18861eadd2b67136
parentba211e3ec35820eced89bfe12e2d94e6352a4c5f
include/linux/netdevice.h: Add netif_printk helpers

Add macros to test a private structure for msg_enable bits
and the netif_msg_##bit to test and call netdev_printk if set

Simplifies logic in callers and adds message logging consistency

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h