提交 fa876b47 编写于 作者: H H Hartley Sweeten 提交者: 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: NH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册