[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>
This commit is contained in:
committed by
David S. Miller
parent
95ea36275f
commit
0795af5729
@@ -741,12 +741,10 @@ static int __init am79c961_probe(struct platform_device *pdev)
|
||||
|
||||
ret = register_netdev(dev);
|
||||
if (ret == 0) {
|
||||
printk(KERN_INFO "%s: ether address ", dev->name);
|
||||
|
||||
/* Retrive and print the ethernet address. */
|
||||
for (i = 0; i < 6; i++)
|
||||
printk (i == 5 ? "%02x\n" : "%02x:", dev->dev_addr[i]);
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
printk(KERN_INFO "%s: ether address %s\n",
|
||||
dev->name, print_mac(mac, dev->dev_addr));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user