[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
@ -2635,6 +2635,7 @@ static int __init fec_enet_module_init(void)
|
||||
{
|
||||
struct net_device *dev;
|
||||
int i, j, err;
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
printk("FEC ENET Version 0.2\n");
|
||||
|
||||
@ -2653,10 +2654,8 @@ static int __init fec_enet_module_init(void)
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
printk("%s: ethernet ", dev->name);
|
||||
for (j = 0; (j < 5); j++)
|
||||
printk("%02x:", dev->dev_addr[j]);
|
||||
printk("%02x\n", dev->dev_addr[5]);
|
||||
printk("%s: ethernet %s\n",
|
||||
dev->name, print_mac(mac, dev->dev_addr));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user