aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/8139cp.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/8139cp.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/8139cp.c')
-rw-r--r--drivers/net/8139cp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c
index 58fad1b2f72e..7edd50cf7776 100644
--- a/drivers/net/8139cp.c
+++ b/drivers/net/8139cp.c
@@ -1823,6 +1823,7 @@ static int cp_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
1823 void __iomem *regs; 1823 void __iomem *regs;
1824 resource_size_t pciaddr; 1824 resource_size_t pciaddr;
1825 unsigned int addr_len, i, pci_using_dac; 1825 unsigned int addr_len, i, pci_using_dac;
1826 DECLARE_MAC_BUF(mac);
1826 1827
1827#ifndef MODULE 1828#ifndef MODULE
1828 static int version_printed; 1829 static int version_printed;
@@ -1964,13 +1965,10 @@ static int cp_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
1964 goto err_out_iomap; 1965 goto err_out_iomap;
1965 1966
1966 printk (KERN_INFO "%s: RTL-8139C+ at 0x%lx, " 1967 printk (KERN_INFO "%s: RTL-8139C+ at 0x%lx, "
1967 "%02x:%02x:%02x:%02x:%02x:%02x, " 1968 "%s, IRQ %d\n",
1968 "IRQ %d\n",
1969 dev->name, 1969 dev->name,
1970 dev->base_addr, 1970 dev->base_addr,
1971 dev->dev_addr[0], dev->dev_addr[1], 1971 print_mac(mac, dev->dev_addr),
1972 dev->dev_addr[2], dev->dev_addr[3],
1973 dev->dev_addr[4], dev->dev_addr[5],
1974 dev->irq); 1972 dev->irq);
1975 1973
1976 pci_set_drvdata(pdev, dev); 1974 pci_set_drvdata(pdev, dev);