xscale/ixp2000/ixpdev: print MAC via printk format specifier
authorDanny Kukawka <danny.kukawka@bisect.de>
Fri, 24 Feb 2012 03:45:58 +0000 (03:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Feb 2012 20:41:00 +0000 (15:41 -0500)
Print MAC/dev_addr via printk extended format specifier %pM
instead of custom code.

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Acked-by: Lennert Buytenhek <kernel@wantstofly.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xscale/ixp2000/ixpdev.c

index e122493ab70e27c2fd80f0edb57e5fb6ad021ee6..45008377c8bfbdbede34582c1b178d3965d359ed 100644 (file)
@@ -398,11 +398,8 @@ int ixpdev_init(int __nds_count, struct net_device **__nds,
        }
 
        for (i = 0; i < nds_count; i++) {
-               printk(KERN_INFO "%s: IXP2000 MSF ethernet (port %d), "
-                       "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x.\n", nds[i]->name, i,
-                       nds[i]->dev_addr[0], nds[i]->dev_addr[1],
-                       nds[i]->dev_addr[2], nds[i]->dev_addr[3],
-                       nds[i]->dev_addr[4], nds[i]->dev_addr[5]);
+               printk(KERN_INFO "%s: IXP2000 MSF ethernet (port %d), %pM.\n",
+                                nds[i]->name, i, nds[i]->dev_addr);
        }
 
        return 0;