]> err.no Git - linux-2.6/commitdiff
[NIU]: Use print_mac
authorJoe Perches <joe@perches.com>
Thu, 20 Dec 2007 12:07:35 +0000 (04:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:59:15 +0000 (14:59 -0800)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/niu.c

index 5f6beabf2d179d71e399d85a0f75af84c36b189a..2fe14b0c5c67956e05f01b69d54ebb7d7a194509 100644 (file)
@@ -7588,12 +7588,10 @@ static void __devinit niu_assign_netdev_ops(struct net_device *dev)
 static void __devinit niu_device_announce(struct niu *np)
 {
        struct net_device *dev = np->dev;
-       int i;
+       DECLARE_MAC_BUF(mac);
 
-       pr_info("%s: NIU Ethernet ", dev->name);
-       for (i = 0; i < 6; i++)
-               printk("%2.2x%c", dev->dev_addr[i],
-                      i == 5 ? '\n' : ':');
+       pr_info("%s: NIU Ethernet %s\n",
+               dev->name, print_mac(mac, dev->dev_addr));
 
        pr_info("%s: Port type[%s] mode[%s:%s] XCVR[%s] phy[%s]\n",
                dev->name,