aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/smc91x.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/smc91x.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/smc91x.c')
-rw-r--r--drivers/net/smc91x.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/smc91x.c b/drivers/net/smc91x.c
index fe28d277f21a..24e610e711e8 100644
--- a/drivers/net/smc91x.c
+++ b/drivers/net/smc91x.c
@@ -1822,9 +1822,10 @@ static int __init smc_probe(struct net_device *dev, void __iomem *ioaddr)
1822{ 1822{
1823 struct smc_local *lp = netdev_priv(dev); 1823 struct smc_local *lp = netdev_priv(dev);
1824 static int version_printed = 0; 1824 static int version_printed = 0;
1825 int i, retval; 1825 int retval;
1826 unsigned int val, revision_register; 1826 unsigned int val, revision_register;
1827 const char *version_string; 1827 const char *version_string;
1828 DECLARE_MAC_BUF(mac);
1828 1829
1829 DBG(2, "%s: %s\n", CARDNAME, __FUNCTION__); 1830 DBG(2, "%s: %s\n", CARDNAME, __FUNCTION__);
1830 1831
@@ -2014,10 +2015,8 @@ static int __init smc_probe(struct net_device *dev, void __iomem *ioaddr)
2014 "set using ifconfig\n", dev->name); 2015 "set using ifconfig\n", dev->name);
2015 } else { 2016 } else {
2016 /* Print the Ethernet address */ 2017 /* Print the Ethernet address */
2017 printk("%s: Ethernet addr: ", dev->name); 2018 printk("%s: Ethernet addr: %s\n",
2018 for (i = 0; i < 5; i++) 2019 dev->name, print_mac(mac, dev->dev_addr));
2019 printk("%2.2x:", dev->dev_addr[i]);
2020 printk("%2.2x\n", dev->dev_addr[5]);
2021 } 2020 }
2022 2021
2023 if (lp->phy_type == 0) { 2022 if (lp->phy_type == 0) {