aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sundance.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/sundance.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/sundance.c')
-rw-r--r--drivers/net/sundance.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/sundance.c b/drivers/net/sundance.c
index 3c553dcc2b9d..a37637ec9b77 100644
--- a/drivers/net/sundance.c
+++ b/drivers/net/sundance.c
@@ -467,7 +467,7 @@ static int __devinit sundance_probe1 (struct pci_dev *pdev,
467 int bar = 1; 467 int bar = 1;
468#endif 468#endif
469 int phy, phy_idx = 0; 469 int phy, phy_idx = 0;
470 470 DECLARE_MAC_BUF(mac);
471 471
472/* when built into the kernel, we only print version if device is found */ 472/* when built into the kernel, we only print version if device is found */
473#ifndef MODULE 473#ifndef MODULE
@@ -546,11 +546,9 @@ static int __devinit sundance_probe1 (struct pci_dev *pdev,
546 if (i) 546 if (i)
547 goto err_out_unmap_rx; 547 goto err_out_unmap_rx;
548 548
549 printk(KERN_INFO "%s: %s at %p, ", 549 printk(KERN_INFO "%s: %s at %p, %s, IRQ %d.\n",
550 dev->name, pci_id_tbl[chip_idx].name, ioaddr); 550 dev->name, pci_id_tbl[chip_idx].name, ioaddr,
551 for (i = 0; i < 5; i++) 551 print_mac(mac, dev->dev_addr), irq);
552 printk("%2.2x:", dev->dev_addr[i]);
553 printk("%2.2x, IRQ %d.\n", dev->dev_addr[i], irq);
554 552
555 np->phys[0] = 1; /* Default setting */ 553 np->phys[0] = 1; /* Default setting */
556 np->mii_preamble_required++; 554 np->mii_preamble_required++;