]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2a14fea09080782085a6a242db7df88fa18cb124
tree3dc48783dc30ed1769b3a50c18861eadd2b67136
parent009f22247a7a20a43faeca129d2f86bb47027bbf
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