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/sis190.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/sis190.c')
-rw-r--r-- | drivers/net/sis190.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/sis190.c b/drivers/net/sis190.c index 808141b46585..720088396bb9 100644 --- a/drivers/net/sis190.c +++ b/drivers/net/sis190.c | |||
@@ -1759,6 +1759,7 @@ static int __devinit sis190_init_one(struct pci_dev *pdev, | |||
1759 | struct net_device *dev; | 1759 | struct net_device *dev; |
1760 | void __iomem *ioaddr; | 1760 | void __iomem *ioaddr; |
1761 | int rc; | 1761 | int rc; |
1762 | DECLARE_MAC_BUF(mac); | ||
1762 | 1763 | ||
1763 | if (!printed_version) { | 1764 | if (!printed_version) { |
1764 | net_drv(&debug, KERN_INFO SIS190_DRIVER_NAME " loaded.\n"); | 1765 | net_drv(&debug, KERN_INFO SIS190_DRIVER_NAME " loaded.\n"); |
@@ -1809,12 +1810,9 @@ static int __devinit sis190_init_one(struct pci_dev *pdev, | |||
1809 | goto err_remove_mii; | 1810 | goto err_remove_mii; |
1810 | 1811 | ||
1811 | net_probe(tp, KERN_INFO "%s: %s at %p (IRQ: %d), " | 1812 | net_probe(tp, KERN_INFO "%s: %s at %p (IRQ: %d), " |
1812 | "%2.2x:%2.2x:%2.2x:%2.2x:%2.2x:%2.2x\n", | 1813 | "%s\n", |
1813 | pci_name(pdev), sis_chip_info[ent->driver_data].name, | 1814 | pci_name(pdev), sis_chip_info[ent->driver_data].name, |
1814 | ioaddr, dev->irq, | 1815 | ioaddr, dev->irq, print_mac(mac, dev->dev_addr)); |
1815 | dev->dev_addr[0], dev->dev_addr[1], | ||
1816 | dev->dev_addr[2], dev->dev_addr[3], | ||
1817 | dev->dev_addr[4], dev->dev_addr[5]); | ||
1818 | 1816 | ||
1819 | net_probe(tp, KERN_INFO "%s: %s mode.\n", dev->name, | 1817 | net_probe(tp, KERN_INFO "%s: %s mode.\n", dev->name, |
1820 | (tp->features & F_HAS_RGMII) ? "RGMII" : "GMII"); | 1818 | (tp->features & F_HAS_RGMII) ? "RGMII" : "GMII"); |