aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgb/ixgb.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-02-15 03:34:20 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-16 18:45:42 -0500
commit6909c66dfbbab99dbbd9931627c9f6e8c45bfbdb (patch)
treeb4926f52d4fd8f55da86cd7aff70102c49d30cbd /drivers/net/ixgb/ixgb.h
parent177867ce08f2756fa361e37086fc1792d7b4cf29 (diff)
drivers/net/ixgb: Use netif_printk macros
Convert private DPRINTK macro uses to netif_<level> equivalents Remove #define DPRINTK Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixgb/ixgb.h')
-rw-r--r--drivers/net/ixgb/ixgb.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/net/ixgb/ixgb.h b/drivers/net/ixgb/ixgb.h
index 5257ae08b9f9..92d2e71d0c8b 100644
--- a/drivers/net/ixgb/ixgb.h
+++ b/drivers/net/ixgb/ixgb.h
@@ -75,19 +75,14 @@ struct ixgb_adapter;
75#include "ixgb_ee.h" 75#include "ixgb_ee.h"
76#include "ixgb_ids.h" 76#include "ixgb_ids.h"
77 77
78#define PFX "ixgb: "
79
78#ifdef _DEBUG_DRIVER_ 80#ifdef _DEBUG_DRIVER_
79#define IXGB_DBG(args...) printk(KERN_DEBUG "ixgb: " args) 81#define IXGB_DBG(args...) printk(KERN_DEBUG PFX args)
80#else 82#else
81#define IXGB_DBG(args...) 83#define IXGB_DBG(args...)
82#endif 84#endif
83 85
84#define PFX "ixgb: "
85#define DPRINTK(nlevel, klevel, fmt, args...) \
86 (void)((NETIF_MSG_##nlevel & adapter->msg_enable) && \
87 printk(KERN_##klevel PFX "%s: %s: " fmt, adapter->netdev->name, \
88 __func__ , ## args))
89
90
91/* TX/RX descriptor defines */ 86/* TX/RX descriptor defines */
92#define DEFAULT_TXD 256 87#define DEFAULT_TXD 256
93#define MAX_TXD 4096 88#define MAX_TXD 4096