Commit fa876b47 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by David S. Miller

drivers/net/smc911x.c: use %pM to shown MAC address

Use the %pM kernel extension to display the MAC address.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b18fe477
...@@ -2017,10 +2017,8 @@ static int __devinit smc911x_probe(struct net_device *dev) ...@@ -2017,10 +2017,8 @@ static int __devinit smc911x_probe(struct net_device *dev)
"set using ifconfig\n", dev->name); "set using ifconfig\n", dev->name);
} else { } else {
/* Print the Ethernet address */ /* Print the Ethernet address */
printk("%s: Ethernet addr: ", dev->name); printk("%s: Ethernet addr: %pM\n",
for (i = 0; i < 5; i++) dev->name, dev->dev_addr);
printk("%2.2x:", dev->dev_addr[i]);
printk("%2.2x\n", dev->dev_addr[5]);
} }
if (lp->phy_type == 0) { if (lp->phy_type == 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment