diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-05-10 05:31:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-16 02:10:02 -0400 |
commit | 28a16c97963d3bc36a2c192859f6d8025ef2967a (patch) | |
tree | 01d21938502412959c88757df973cc5a770d1cce /net/bridge/br_private.h | |
parent | cfb478da70f2213520866c84cb0aea0d7c0e1148 (diff) |
bridge: change console message interface
Use one set of macro's for all bridge messages.
Note: can't use netdev_XXX macro's because bridge is purely
virtual and has no device parent.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_private.h')
-rw-r--r-- | net/bridge/br_private.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index 8a072661a744..79a13d1c2573 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h | |||
@@ -240,6 +240,21 @@ struct br_input_skb_cb { | |||
240 | # define BR_INPUT_SKB_CB_MROUTERS_ONLY(__skb) (0) | 240 | # define BR_INPUT_SKB_CB_MROUTERS_ONLY(__skb) (0) |
241 | #endif | 241 | #endif |
242 | 242 | ||
243 | #define br_printk(level, br, format, args...) \ | ||
244 | printk(level "%s: " format, (br)->dev->name, ##args) | ||
245 | |||
246 | #define br_err(__br, format, args...) \ | ||
247 | br_printk(KERN_ERR, __br, format, ##args) | ||
248 | #define br_warn(__br, format, args...) \ | ||
249 | br_printk(KERN_WARNING, __br, format, ##args) | ||
250 | #define br_notice(__br, format, args...) \ | ||
251 | br_printk(KERN_NOTICE, __br, format, ##args) | ||
252 | #define br_info(__br, format, args...) \ | ||
253 | br_printk(KERN_INFO, __br, format, ##args) | ||
254 | |||
255 | #define br_debug(br, format, args...) \ | ||
256 | pr_debug("%s: " format, (br)->dev->name, ##args) | ||
257 | |||
243 | extern struct notifier_block br_device_notifier; | 258 | extern struct notifier_block br_device_notifier; |
244 | extern const u8 br_group_address[ETH_ALEN]; | 259 | extern const u8 br_group_address[ETH_ALEN]; |
245 | 260 | ||