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/fealnx.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/fealnx.c')
-rw-r--r-- | drivers/net/fealnx.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/fealnx.c b/drivers/net/fealnx.c index 402b071d8d53..43f7647ff246 100644 --- a/drivers/net/fealnx.c +++ b/drivers/net/fealnx.c | |||
@@ -486,6 +486,7 @@ static int __devinit fealnx_init_one(struct pci_dev *pdev, | |||
486 | #else | 486 | #else |
487 | int bar = 1; | 487 | int bar = 1; |
488 | #endif | 488 | #endif |
489 | DECLARE_MAC_BUF(mac); | ||
489 | 490 | ||
490 | /* when built into the kernel, we only print version if device is found */ | 491 | /* when built into the kernel, we only print version if device is found */ |
491 | #ifndef MODULE | 492 | #ifndef MODULE |
@@ -664,11 +665,9 @@ static int __devinit fealnx_init_one(struct pci_dev *pdev, | |||
664 | if (err) | 665 | if (err) |
665 | goto err_out_free_tx; | 666 | goto err_out_free_tx; |
666 | 667 | ||
667 | printk(KERN_INFO "%s: %s at %p, ", | 668 | printk(KERN_INFO "%s: %s at %p, %s, IRQ %d.\n", |
668 | dev->name, skel_netdrv_tbl[chip_id].chip_name, ioaddr); | 669 | dev->name, skel_netdrv_tbl[chip_id].chip_name, ioaddr, |
669 | for (i = 0; i < 5; i++) | 670 | print_mac(mac, dev->dev_addr), irq); |
670 | printk("%2.2x:", dev->dev_addr[i]); | ||
671 | printk("%2.2x, IRQ %d.\n", dev->dev_addr[i], irq); | ||
672 | 671 | ||
673 | return 0; | 672 | return 0; |
674 | 673 | ||