ixgb: Delete IXGB_DBG() macro and call pr_debug() directly.
PATCH 1/1 ixgb: Delete IXGB_DBG() macro and call pr_debug() directly.
Remove the minimally-useful definition of IXGB_DBG() and have ixgb_main.c call pr_debug() directly.
---
drivers/net/ixgb/ixgb.h +0 -6
@@ -77,12 +77,6 @@ #include "ixgb_hw.h"#include "ixgb_ee.h" #include "ixgb_ids.h" -#ifdef _DEBUG_DRIVER_ -#define IXGB_DBG(args...) printk(KERN_DEBUG "ixgb: " args) -#else -#define IXGB_DBG(args...) -#endif -#define PFX "ixgb: " #define DPRINTK(nlevel, klevel, fmt, args...) \ (void)((NETIF_MSG_##nlevel & adapter->msg_enable) && \
drivers/net/ixgb/ixgb_main.c +1 -1
@@ -1948,7 +1948,7 @@ #endif/* All receives must fit into a single buffer */ -IXGB_DBG ("Receive packet consumed multiple buffers " +pr_debug ("Receive packet consumed multiple buffers " "length<%x>\n" , length);dev_kfree_skb_irq (skb);
--
ok, one more time ...
rday
Quoted 10 lines · Robert P. J. Day
Remove the minimally-useful definition of
IXGB_DBG()and haveixgb_main.ccallpr_debug()directly.Signed-off-by Robert P. J. Day <[email protected]>---
drivers/net/ixgb/ixgb.h +0
-0
drivers/net/ixgb/ixgb.h #include "ixgb_hw.h" · line 81
Quoted 5 lines
drivers/net/ixgb/ixgb.h +0
-2@@ -77,12 +77,6 @@ #include "ixgb_hw.h"#include "ixgb_ee.h" #include "ixgb_ids.h" -#ifdef _DEBUG_DRIVER_ -#define IXGB_DBG(args...) printk(KERN_DEBUG "ixgb: " args)
^^^^^^^^
Quoted 12 lines
drivers/net/ixgb/ixgb.h +0
-4-#else -#define IXGB_DBG(args...) -#endif -#define PFX "ixgb: " #define DPRINTK(nlevel, klevel, fmt, args...) \ (void)((NETIF_MSG_##nlevel & adapter->msg_enable) && \drivers/net/ixgb/ixgb_main.c +0
-0
drivers/net/ixgb/ixgb_main.c #endif · line 1951
Quoted 5 lines
drivers/net/ixgb/ixgb_main.c +1
-1@@ -1948,7 +1948,7 @@ #endif/* All receives must fit into a single buffer */ - IXGB_DBG("Receive packet consumed multiple buffers " + pr_debug("Receive packet consumed multiple buffers "
Would perhaps be useful to retain the "ixgb:" prefix.
Andreas.
Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Quoted 31 lines · Andreas Schwab
Quoted 10 lines · Robert P. J. Day
Remove the minimally-useful definition of
IXGB_DBG()and haveixgb_main.ccallpr_debug()directly.Signed-off-by Robert P. J. Day <[email protected]>---
drivers/net/ixgb/ixgb.h +0
-0drivers/net/ixgb/ixgb.h #include "ixgb_hw.h" · line 81
Quoted 5 lines
drivers/net/ixgb/ixgb.h +0
-2@@ -77,12 +77,6 @@ #include "ixgb_hw.h"#include "ixgb_ee.h" #include "ixgb_ids.h" -#ifdef _DEBUG_DRIVER_ -#define IXGB_DBG(args...) printk(KERN_DEBUG "ixgb: " args)^^^^^^^^Quoted 13 lines
drivers/net/ixgb/ixgb.h +0
-4-#else -#define IXGB_DBG(args...) -#endif -#define PFX "ixgb: " #define DPRINTK(nlevel, klevel, fmt, args...) \ (void)((NETIF_MSG_##nlevel & adapter->msg_enable) && \drivers/net/ixgb/ixgb_main.c +0
-0@@ -1948,7 +1948,7 @@ #endif
Quoted 6 lines
drivers/net/ixgb/ixgb_main.c #endif · line 1951
Quoted 4 lines
drivers/net/ixgb/ixgb_main.c +1
-1/* All receives must fit into a single buffer */ - IXGB_DBG("Receive packet consumed multiple buffers " + pr_debug("Receive packet consumed multiple buffers "Would perhaps be useful to retain the "ixgb:" prefix.
crap, you're right. my bad. back into the breech ... argh. that's what happens when there's only decaf left in the house.
rday