aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/arm/am79c961a.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/am79c961a.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/am79c961a.c')
-rw-r--r--drivers/net/arm/am79c961a.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/arm/am79c961a.c b/drivers/net/arm/am79c961a.c
index 77964556776e..ba6bd03a015f 100644
--- a/drivers/net/arm/am79c961a.c
+++ b/drivers/net/arm/am79c961a.c
@@ -741,12 +741,10 @@ static int __init am79c961_probe(struct platform_device *pdev)
741 741
742 ret = register_netdev(dev); 742 ret = register_netdev(dev);
743 if (ret == 0) { 743 if (ret == 0) {
744 printk(KERN_INFO "%s: ether address ", dev->name); 744 DECLARE_MAC_BUF(mac);
745
746 /* Retrive and print the ethernet address. */
747 for (i = 0; i < 6; i++)
748 printk (i == 5 ? "%02x\n" : "%02x:", dev->dev_addr[i]);
749 745
746 printk(KERN_INFO "%s: ether address %s\n",
747 dev->name, print_mac(mac, dev->dev_addr));
750 return 0; 748 return 0;
751 } 749 }
752 750