diff options
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 | ||