aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/epic100.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/epic100.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/epic100.c')
-rw-r--r--drivers/net/epic100.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/epic100.c b/drivers/net/epic100.c
index 5ac56f20003d..ecdd3fc8d70c 100644
--- a/drivers/net/epic100.c
+++ b/drivers/net/epic100.c
@@ -317,6 +317,7 @@ static int __devinit epic_init_one (struct pci_dev *pdev,
317 int i, ret, option = 0, duplex = 0; 317 int i, ret, option = 0, duplex = 0;
318 void *ring_space; 318 void *ring_space;
319 dma_addr_t ring_dma; 319 dma_addr_t ring_dma;
320 DECLARE_MAC_BUF(mac);
320 321
321/* when built into the kernel, we only print version if device is found */ 322/* when built into the kernel, we only print version if device is found */
322#ifndef MODULE 323#ifndef MODULE
@@ -493,11 +494,9 @@ static int __devinit epic_init_one (struct pci_dev *pdev,
493 if (ret < 0) 494 if (ret < 0)
494 goto err_out_unmap_rx; 495 goto err_out_unmap_rx;
495 496
496 printk(KERN_INFO "%s: %s at %#lx, IRQ %d, ", 497 printk(KERN_INFO "%s: %s at %#lx, IRQ %d, %s\n",
497 dev->name, pci_id_tbl[chip_idx].name, ioaddr, dev->irq); 498 dev->name, pci_id_tbl[chip_idx].name, ioaddr, dev->irq,
498 for (i = 0; i < 5; i++) 499 print_mac(mac, dev->dev_addr));
499 printk("%2.2x:", dev->dev_addr[i]);
500 printk("%2.2x.\n", dev->dev_addr[i]);
501 500
502out: 501out:
503 return ret; 502 return ret;