aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000e/e1000.h
diff options
context:
space:
mode:
authorBruce Allan <bruce.w.allan@intel.com>2010-03-24 08:55:30 -0400
committerDavid S. Miller <davem@davemloft.net>2010-03-27 00:05:23 -0400
commit8544b9f7371ec6a7a5c0f8701ddde9e98f52a37e (patch)
tree36c2e615c3cb879602600f3a3e0f6beb37fdb15a /drivers/net/e1000e/e1000.h
parent66aa4a55fe0548c8b13a195c61774db65c5896cd (diff)
e1000e: Use pr_<level> and netdev_<level>
As an alternative to a quite large patch previously submitted by Joe Perches to make use of kernel logging API, this patch is much less intrusive. Convert e_<level> to netdev_<level> Use #define pr_fmt Convert a few printks to pr_<level> Cc: Joe Perches <joe@perches.com> Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/e1000e/e1000.h')
-rw-r--r--drivers/net/e1000e/e1000.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/drivers/net/e1000e/e1000.h b/drivers/net/e1000e/e1000.h
index 8da190b930a2..11e02e1f187c 100644
--- a/drivers/net/e1000e/e1000.h
+++ b/drivers/net/e1000e/e1000.h
@@ -42,25 +42,16 @@
42 42
43struct e1000_info; 43struct e1000_info;
44 44
45#define e_printk(level, adapter, format, arg...) \
46 printk(level "%s: %s: " format, pci_name(adapter->pdev), \
47 adapter->netdev->name, ## arg)
48
49#ifdef DEBUG
50#define e_dbg(format, arg...) \ 45#define e_dbg(format, arg...) \
51 e_printk(KERN_DEBUG , hw->adapter, format, ## arg) 46 netdev_dbg(hw->adapter->netdev, format, ## arg)
52#else
53#define e_dbg(format, arg...) do { (void)(hw); } while (0)
54#endif
55
56#define e_err(format, arg...) \ 47#define e_err(format, arg...) \
57 e_printk(KERN_ERR, adapter, format, ## arg) 48 netdev_err(adapter->netdev, format, ## arg)
58#define e_info(format, arg...) \ 49#define e_info(format, arg...) \
59 e_printk(KERN_INFO, adapter, format, ## arg) 50 netdev_info(adapter->netdev, format, ## arg)
60#define e_warn(format, arg...) \ 51#define e_warn(format, arg...) \
61 e_printk(KERN_WARNING, adapter, format, ## arg) 52 netdev_warn(adapter->netdev, format, ## arg)
62#define e_notice(format, arg...) \ 53#define e_notice(format, arg...) \
63 e_printk(KERN_NOTICE, adapter, format, ## arg) 54 netdev_notice(adapter->netdev, format, ## arg)
64 55
65 56
66/* Interrupt modes, as used by the IntMode parameter */ 57/* Interrupt modes, as used by the IntMode parameter */