drivers/net/tehuti.c: Use (pr|netdev|netif)_<levels> macro helpers
Make the output logging messages a bit more consistent. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
6c35abaedc
commit
865a21a5e3
@@ -529,28 +529,34 @@ struct txd_desc {
|
||||
|
||||
/* Debugging Macros */
|
||||
|
||||
#define ERR(fmt, args...) printk(KERN_ERR fmt, ## args)
|
||||
#define DBG2(fmt, args...) \
|
||||
printk(KERN_ERR "%s:%-5d: " fmt, __func__, __LINE__, ## args)
|
||||
#define DBG2(fmt, args...) \
|
||||
pr_err("%s:%-5d: " fmt, __func__, __LINE__, ## args)
|
||||
|
||||
#define BDX_ASSERT(x) BUG_ON(x)
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
#define ENTER do { \
|
||||
printk(KERN_ERR "%s:%-5d: ENTER\n", __func__, __LINE__); \
|
||||
#define ENTER \
|
||||
do { \
|
||||
pr_err("%s:%-5d: ENTER\n", __func__, __LINE__); \
|
||||
} while (0)
|
||||
|
||||
#define RET(args...) do { \
|
||||
printk(KERN_ERR "%s:%-5d: RETURN\n", __func__, __LINE__); \
|
||||
return args; } while (0)
|
||||
#define RET(args...) \
|
||||
do { \
|
||||
pr_err("%s:%-5d: RETURN\n", __func__, __LINE__); \
|
||||
return args; \
|
||||
} while (0)
|
||||
|
||||
#define DBG(fmt, args...) \
|
||||
printk(KERN_ERR "%s:%-5d: " fmt, __func__, __LINE__, ## args)
|
||||
#define DBG(fmt, args...) \
|
||||
pr_err("%s:%-5d: " fmt, __func__, __LINE__, ## args)
|
||||
#else
|
||||
#define ENTER do { } while (0)
|
||||
#define ENTER do { } while (0)
|
||||
#define RET(args...) return args
|
||||
#define DBG(fmt, args...) do { } while (0)
|
||||
#define DBG(fmt, args...) \
|
||||
do { \
|
||||
if (0) \
|
||||
pr_err(fmt, ##args); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#endif /* _BDX__H */
|
||||
|
Reference in New Issue
Block a user