aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dl2k.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2007-10-03 20:59:30 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:51:42 -0400
commit0795af5729b18218767fab27c44b1384f72dc9ad (patch)
tree67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /drivers/net/dl2k.c
parent95ea36275f3c9a1d3d04c217b4b576c657c4e70e (diff)
[NET]: Introduce and use print_mac() and DECLARE_MAC_BUF()
This is nicer than the MAC_FMT stuff. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dl2k.c')
-rw-r--r--drivers/net/dl2k.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/dl2k.c b/drivers/net/dl2k.c
index 12486e13b85b..e91b7096838a 100644
--- a/drivers/net/dl2k.c
+++ b/drivers/net/dl2k.c
@@ -97,6 +97,7 @@ rio_probe1 (struct pci_dev *pdev, const struct pci_device_id *ent)
97 static int version_printed; 97 static int version_printed;
98 void *ring_space; 98 void *ring_space;
99 dma_addr_t ring_dma; 99 dma_addr_t ring_dma;
100 DECLARE_MAC_BUF(mac);
100 101
101 if (!version_printed++) 102 if (!version_printed++)
102 printk ("%s", version); 103 printk ("%s", version);
@@ -256,10 +257,8 @@ rio_probe1 (struct pci_dev *pdev, const struct pci_device_id *ent)
256 257
257 card_idx++; 258 card_idx++;
258 259
259 printk (KERN_INFO "%s: %s, %02x:%02x:%02x:%02x:%02x:%02x, IRQ %d\n", 260 printk (KERN_INFO "%s: %s, %s, IRQ %d\n",
260 dev->name, np->name, 261 dev->name, np->name, print_mac(mac, dev->dev_addr), irq);
261 dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2],
262 dev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5], irq);
263 if (tx_coalesce > 1) 262 if (tx_coalesce > 1)
264 printk(KERN_INFO "tx_coalesce:\t%d packets\n", 263 printk(KERN_INFO "tx_coalesce:\t%d packets\n",
265 tx_coalesce); 264 tx_coalesce);