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/eepro100.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/eepro100.c')
-rw-r--r-- | drivers/net/eepro100.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/eepro100.c b/drivers/net/eepro100.c index f8b69ceb2be6..1548a80f917d 100644 --- a/drivers/net/eepro100.c +++ b/drivers/net/eepro100.c | |||
@@ -622,6 +622,7 @@ static int __devinit speedo_found1(struct pci_dev *pdev, | |||
622 | int size; | 622 | int size; |
623 | void *tx_ring_space; | 623 | void *tx_ring_space; |
624 | dma_addr_t tx_ring_dma; | 624 | dma_addr_t tx_ring_dma; |
625 | DECLARE_MAC_BUF(mac); | ||
625 | 626 | ||
626 | size = TX_RING_SIZE * sizeof(struct TxFD) + sizeof(struct speedo_stats); | 627 | size = TX_RING_SIZE * sizeof(struct TxFD) + sizeof(struct speedo_stats); |
627 | tx_ring_space = pci_alloc_consistent(pdev, size, &tx_ring_dma); | 628 | tx_ring_space = pci_alloc_consistent(pdev, size, &tx_ring_dma); |
@@ -705,12 +706,8 @@ static int __devinit speedo_found1(struct pci_dev *pdev, | |||
705 | else | 706 | else |
706 | product = pci_name(pdev); | 707 | product = pci_name(pdev); |
707 | 708 | ||
708 | printk(KERN_INFO "%s: %s, ", dev->name, product); | 709 | printk(KERN_INFO "%s: %s, %s, IRQ %d.\n", dev->name, product, |
709 | 710 | print_mac(mac, dev->dev_addr), pdev->irq); | |
710 | for (i = 0; i < 5; i++) | ||
711 | printk("%2.2X:", dev->dev_addr[i]); | ||
712 | printk("%2.2X, ", dev->dev_addr[i]); | ||
713 | printk("IRQ %d.\n", pdev->irq); | ||
714 | 711 | ||
715 | sp = netdev_priv(dev); | 712 | sp = netdev_priv(dev); |
716 | 713 | ||