From: Joe Perches Date: Thu, 20 Dec 2007 12:07:35 +0000 (-0800) Subject: [NIU]: Use print_mac X-Git-Tag: v2.6.25-rc1~1162^2~986 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2caf62f6cae46e36b1c4a1b0f2d9ef82af89cad2;p=linux-2.6 [NIU]: Use print_mac Signed-off-by: Joe Perches Signed-off-by: David S. Miller --- diff --git a/drivers/net/niu.c b/drivers/net/niu.c index 5f6beabf2d..2fe14b0c5c 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c @@ -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,