[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:
Joe Perches
2007-10-03 17:59:30 -07:00
committed by David S. Miller
parent 95ea36275f
commit 0795af5729
228 changed files with 1876 additions and 1953 deletions

View File

@ -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;
}