drivers/net/smc911x.c: use %pM to shown MAC address
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 30 Dec 2009 04:08:09 +0000 (20:08 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Dec 2009 04:08:09 +0000 (20:08 -0800)
Use the %pM kernel extension to display the MAC address.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/smc911x.c

index 44ebbaa7457bbaeb4a9633256f98f879280e79a1..3c5a4f52345c6b49c185c6c7c47a47c2f8e97e8d 100644 (file)
@@ -2017,10 +2017,8 @@ static int __devinit smc911x_probe(struct net_device *dev)
                                        "set using ifconfig\n", dev->name);
                } else {
                        /* Print the Ethernet address */
-                       printk("%s: Ethernet addr: ", dev->name);
-                       for (i = 0; i < 5; i++)
-                               printk("%2.2x:", dev->dev_addr[i]);
-                       printk("%2.2x\n", dev->dev_addr[5]);
+                       printk("%s: Ethernet addr: %pM\n",
+                               dev->name, dev->dev_addr);
                }
 
                if (lp->phy_type == 0) {