diff options
author | Joe Perches <joe@perches.com> | 2007-10-03 20:59:30 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:42 -0400 |
commit | 0795af5729b18218767fab27c44b1384f72dc9ad (patch) | |
tree | 67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /drivers/net/tulip/dmfe.c | |
parent | 95ea36275f3c9a1d3d04c217b4b576c657c4e70e (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/tulip/dmfe.c')
-rw-r--r-- | drivers/net/tulip/dmfe.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/net/tulip/dmfe.c b/drivers/net/tulip/dmfe.c index e2596e9ab1d7..ca90566d5bcd 100644 --- a/drivers/net/tulip/dmfe.c +++ b/drivers/net/tulip/dmfe.c | |||
@@ -362,6 +362,7 @@ static int __devinit dmfe_init_one (struct pci_dev *pdev, | |||
362 | struct net_device *dev; | 362 | struct net_device *dev; |
363 | u32 pci_pmr; | 363 | u32 pci_pmr; |
364 | int i, err; | 364 | int i, err; |
365 | DECLARE_MAC_BUF(mac); | ||
365 | 366 | ||
366 | DMFE_DBUG(0, "dmfe_init_one()", 0); | 367 | DMFE_DBUG(0, "dmfe_init_one()", 0); |
367 | 368 | ||
@@ -470,13 +471,13 @@ static int __devinit dmfe_init_one (struct pci_dev *pdev, | |||
470 | if (err) | 471 | if (err) |
471 | goto err_out_res; | 472 | goto err_out_res; |
472 | 473 | ||
473 | printk(KERN_INFO "%s: Davicom DM%04lx at pci%s,", | 474 | printk(KERN_INFO "%s: Davicom DM%04lx at pci%s, " |
474 | dev->name, | 475 | "%s, irq %d.\n", |
475 | ent->driver_data >> 16, | 476 | dev->name, |
476 | pci_name(pdev)); | 477 | ent->driver_data >> 16, |
477 | for (i = 0; i < 6; i++) | 478 | pci_name(pdev), |
478 | printk("%c%02x", i ? ':' : ' ', dev->dev_addr[i]); | 479 | print_mac(mac, dev->dev_addr), |
479 | printk(", irq %d.\n", dev->irq); | 480 | dev->irq); |
480 | 481 | ||
481 | pci_set_master(pdev); | 482 | pci_set_master(pdev); |
482 | 483 | ||