[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
@@ -622,6 +622,7 @@ static int __init sgiseeq_probe(struct platform_device *pdev)
|
||||
struct sgiseeq_private *sp;
|
||||
struct net_device *dev;
|
||||
int err, i;
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
dev = alloc_etherdev(sizeof (struct sgiseeq_private));
|
||||
if (!dev) {
|
||||
@@ -695,9 +696,8 @@ static int __init sgiseeq_probe(struct platform_device *pdev)
|
||||
goto err_out_free_page;
|
||||
}
|
||||
|
||||
printk(KERN_INFO "%s: %s ", dev->name, sgiseeqstr);
|
||||
for (i = 0; i < 6; i++)
|
||||
printk("%2.2x%c", dev->dev_addr[i], i == 5 ? '\n' : ':');
|
||||
printk(KERN_INFO "%s: %s %s\n",
|
||||
dev->name, sgiseeqstr, print_mac(mac, dev->dev_addr));
|
||||
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user