aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tehuti.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-02-15 03:34:22 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-16 18:45:43 -0500
commit865a21a5e3d1b384c559a44c898fcad93e187b82 (patch)
tree7ade861f21f42ea0bc36747f6acd02cd08f63b1a /drivers/net/tehuti.h
parent6c35abaedc191e2c7c8fa40a2b4c2b01d553b768 (diff)
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>
Diffstat (limited to 'drivers/net/tehuti.h')
-rw-r--r--drivers/net/tehuti.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/drivers/net/tehuti.h b/drivers/net/tehuti.h
index 124141909e42..a19dcf8b6b56 100644
--- a/drivers/net/tehuti.h
+++ b/drivers/net/tehuti.h
@@ -529,28 +529,34 @@ struct txd_desc {
529 529
530/* Debugging Macros */ 530/* Debugging Macros */
531 531
532#define ERR(fmt, args...) printk(KERN_ERR fmt, ## args) 532#define DBG2(fmt, args...) \
533#define DBG2(fmt, args...) \ 533 pr_err("%s:%-5d: " fmt, __func__, __LINE__, ## args)
534 printk(KERN_ERR "%s:%-5d: " fmt, __func__, __LINE__, ## args)
535 534
536#define BDX_ASSERT(x) BUG_ON(x) 535#define BDX_ASSERT(x) BUG_ON(x)
537 536
538#ifdef DEBUG 537#ifdef DEBUG
539 538
540#define ENTER do { \ 539#define ENTER \
541 printk(KERN_ERR "%s:%-5d: ENTER\n", __func__, __LINE__); \ 540do { \
541 pr_err("%s:%-5d: ENTER\n", __func__, __LINE__); \
542} while (0) 542} while (0)
543 543
544#define RET(args...) do { \ 544#define RET(args...) \
545 printk(KERN_ERR "%s:%-5d: RETURN\n", __func__, __LINE__); \ 545do { \
546return args; } while (0) 546 pr_err("%s:%-5d: RETURN\n", __func__, __LINE__); \
547 return args; \
548} while (0)
547 549
548#define DBG(fmt, args...) \ 550#define DBG(fmt, args...) \
549 printk(KERN_ERR "%s:%-5d: " fmt, __func__, __LINE__, ## args) 551 pr_err("%s:%-5d: " fmt, __func__, __LINE__, ## args)
550#else 552#else
551#define ENTER do { } while (0) 553#define ENTER do { } while (0)
552#define RET(args...) return args 554#define RET(args...) return args
553#define DBG(fmt, args...) do { } while (0) 555#define DBG(fmt, args...) \
556do { \
557 if (0) \
558 pr_err(fmt, ##args); \
559} while (0)
554#endif 560#endif
555 561
556#endif /* _BDX__H */ 562#endif /* _BDX__H */