aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/arm/etherh.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/arm/etherh.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/arm/etherh.c')
-rw-r--r--drivers/net/arm/etherh.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/arm/etherh.c b/drivers/net/arm/etherh.c
index 5d093b3ddcd4..00081d2b9cd5 100644
--- a/drivers/net/arm/etherh.c
+++ b/drivers/net/arm/etherh.c
@@ -648,6 +648,7 @@ etherh_probe(struct expansion_card *ec, const struct ecard_id *id)
648 struct net_device *dev; 648 struct net_device *dev;
649 struct etherh_priv *eh; 649 struct etherh_priv *eh;
650 int i, ret; 650 int i, ret;
651 DECLARE_MAC_BUF(mac);
651 652
652 etherh_banner(); 653 etherh_banner();
653 654
@@ -745,11 +746,8 @@ etherh_probe(struct expansion_card *ec, const struct ecard_id *id)
745 if (ret) 746 if (ret)
746 goto free; 747 goto free;
747 748
748 printk(KERN_INFO "%s: %s in slot %d, ", 749 printk(KERN_INFO "%s: %s in slot %d, %s\n",
749 dev->name, data->name, ec->slot_no); 750 dev->name, data->name, ec->slot_no, print_mac(mac, dev->dev_addr));
750
751 for (i = 0; i < 6; i++)
752 printk("%2.2x%c", dev->dev_addr[i], i == 5 ? '\n' : ':');
753 751
754 ecard_set_drvdata(ec, dev); 752 ecard_set_drvdata(ec, dev);
755 753