diff options
Diffstat (limited to 'drivers/net/tehuti.h')
-rw-r--r-- | drivers/net/tehuti.h | 30 |
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__); \ | 540 | do { \ |
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__); \ | 545 | do { \ |
546 | return 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...) \ |
556 | do { \ | ||
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 */ |