diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-08-20 19:52:04 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-24 18:59:00 -0400 |
commit | b39d66a81fb4f5ab555f86a2e49f3714f8369a3d (patch) | |
tree | 20ffb096fe2781545ac3f77f07ebbb347234e111 /drivers/net/tehuti.h | |
parent | b514f6b6da3aedcf4eb6f0c69e910ae89ef4632f (diff) |
drivers/net: replace __FUNCTION__ with __func__
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/tehuti.h')
-rw-r--r-- | drivers/net/tehuti.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/tehuti.h b/drivers/net/tehuti.h index 7db48f1cd949..efaf84d9757d 100644 --- a/drivers/net/tehuti.h +++ b/drivers/net/tehuti.h | |||
@@ -539,22 +539,22 @@ struct txd_desc { | |||
539 | 539 | ||
540 | #define ERR(fmt, args...) printk(KERN_ERR fmt, ## args) | 540 | #define ERR(fmt, args...) printk(KERN_ERR fmt, ## args) |
541 | #define DBG2(fmt, args...) \ | 541 | #define DBG2(fmt, args...) \ |
542 | printk(KERN_ERR "%s:%-5d: " fmt, __FUNCTION__, __LINE__, ## args) | 542 | printk(KERN_ERR "%s:%-5d: " fmt, __func__, __LINE__, ## args) |
543 | 543 | ||
544 | #define BDX_ASSERT(x) BUG_ON(x) | 544 | #define BDX_ASSERT(x) BUG_ON(x) |
545 | 545 | ||
546 | #ifdef DEBUG | 546 | #ifdef DEBUG |
547 | 547 | ||
548 | #define ENTER do { \ | 548 | #define ENTER do { \ |
549 | printk(KERN_ERR "%s:%-5d: ENTER\n", __FUNCTION__, __LINE__); \ | 549 | printk(KERN_ERR "%s:%-5d: ENTER\n", __func__, __LINE__); \ |
550 | } while (0) | 550 | } while (0) |
551 | 551 | ||
552 | #define RET(args...) do { \ | 552 | #define RET(args...) do { \ |
553 | printk(KERN_ERR "%s:%-5d: RETURN\n", __FUNCTION__, __LINE__); \ | 553 | printk(KERN_ERR "%s:%-5d: RETURN\n", __func__, __LINE__); \ |
554 | return args; } while (0) | 554 | return args; } while (0) |
555 | 555 | ||
556 | #define DBG(fmt, args...) \ | 556 | #define DBG(fmt, args...) \ |
557 | printk(KERN_ERR "%s:%-5d: " fmt, __FUNCTION__, __LINE__, ## args) | 557 | printk(KERN_ERR "%s:%-5d: " fmt, __func__, __LINE__, ## args) |
558 | #else | 558 | #else |
559 | #define ENTER do { } while (0) | 559 | #define ENTER do { } while (0) |
560 | #define RET(args...) return args | 560 | #define RET(args...) return args |