aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sb1250-mac.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/sb1250-mac.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/sb1250-mac.c')
-rw-r--r--drivers/net/sb1250-mac.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/sb1250-mac.c b/drivers/net/sb1250-mac.c
index 76e7ee9a6cbc..6001ab47fba0 100644
--- a/drivers/net/sb1250-mac.c
+++ b/drivers/net/sb1250-mac.c
@@ -2407,6 +2407,7 @@ static int sbmac_init(struct net_device *dev, int idx)
2407 uint64_t ea_reg; 2407 uint64_t ea_reg;
2408 int i; 2408 int i;
2409 int err; 2409 int err;
2410 DECLARE_MAC_BUF(mac);
2410 2411
2411 sc = netdev_priv(dev); 2412 sc = netdev_priv(dev);
2412 2413
@@ -2487,10 +2488,8 @@ static int sbmac_init(struct net_device *dev, int idx)
2487 * was being displayed) 2488 * was being displayed)
2488 */ 2489 */
2489 printk(KERN_INFO 2490 printk(KERN_INFO
2490 "%s: SiByte Ethernet at 0x%08lX, address: %02X:%02X:%02X:%02X:%02X:%02X\n", 2491 "%s: SiByte Ethernet at 0x%08lX, address: %s\n",
2491 dev->name, dev->base_addr, 2492 dev->name, dev->base_addr, print_mac(mac, eaddr));
2492 eaddr[0],eaddr[1],eaddr[2],eaddr[3],eaddr[4],eaddr[5]);
2493
2494 2493
2495 return 0; 2494 return 0;
2496 2495