aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/fec.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/fec.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/fec.c')
-rw-r--r--drivers/net/fec.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c
index 4419c3cee995..2b5782056dda 100644
--- a/drivers/net/fec.c
+++ b/drivers/net/fec.c
@@ -2635,6 +2635,7 @@ static int __init fec_enet_module_init(void)
2635{ 2635{
2636 struct net_device *dev; 2636 struct net_device *dev;
2637 int i, j, err; 2637 int i, j, err;
2638 DECLARE_MAC_BUF(mac);
2638 2639
2639 printk("FEC ENET Version 0.2\n"); 2640 printk("FEC ENET Version 0.2\n");
2640 2641
@@ -2653,10 +2654,8 @@ static int __init fec_enet_module_init(void)
2653 return -EIO; 2654 return -EIO;
2654 } 2655 }
2655 2656
2656 printk("%s: ethernet ", dev->name); 2657 printk("%s: ethernet %s\n",
2657 for (j = 0; (j < 5); j++) 2658 dev->name, print_mac(mac, dev->dev_addr));
2658 printk("%02x:", dev->dev_addr[j]);
2659 printk("%02x\n", dev->dev_addr[5]);
2660 } 2659 }
2661 return 0; 2660 return 0;
2662} 2661}