diff options
author | Joe Perches <joe@perches.com> | 2007-10-03 20:59:30 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:42 -0400 |
commit | 0795af5729b18218767fab27c44b1384f72dc9ad (patch) | |
tree | 67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /drivers/net/sunlance.c | |
parent | 95ea36275f3c9a1d3d04c217b4b576c657c4e70e (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/sunlance.c')
-rw-r--r-- | drivers/net/sunlance.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/sunlance.c b/drivers/net/sunlance.c index 7bf5c90b7749..26ade68aeabf 100644 --- a/drivers/net/sunlance.c +++ b/drivers/net/sunlance.c | |||
@@ -1321,6 +1321,7 @@ static int __devinit sparc_lance_probe_one(struct sbus_dev *sdev, | |||
1321 | struct net_device *dev; | 1321 | struct net_device *dev; |
1322 | struct lance_private *lp; | 1322 | struct lance_private *lp; |
1323 | int i; | 1323 | int i; |
1324 | DECLARE_MAC_BUF(mac); | ||
1324 | 1325 | ||
1325 | dev = alloc_etherdev(sizeof(struct lance_private) + 8); | 1326 | dev = alloc_etherdev(sizeof(struct lance_private) + 8); |
1326 | if (!dev) | 1327 | if (!dev) |
@@ -1478,12 +1479,8 @@ no_link_test: | |||
1478 | 1479 | ||
1479 | dev_set_drvdata(&sdev->ofdev.dev, lp); | 1480 | dev_set_drvdata(&sdev->ofdev.dev, lp); |
1480 | 1481 | ||
1481 | printk(KERN_INFO "%s: LANCE ", dev->name); | 1482 | printk(KERN_INFO "%s: LANCE %s\n", |
1482 | 1483 | dev->name, print_mac(mac, dev->dev_addr)); | |
1483 | for (i = 0; i < 6; i++) | ||
1484 | printk("%2.2x%c", dev->dev_addr[i], | ||
1485 | i == 5 ? ' ': ':'); | ||
1486 | printk("\n"); | ||
1487 | 1484 | ||
1488 | return 0; | 1485 | return 0; |
1489 | 1486 | ||