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

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>
This commit is contained in:
H Hartley Sweeten 2009-12-29 20:08:09 -08:00 коммит произвёл David S. Miller
Родитель b18fe4777f
Коммит fa876b474a
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -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) {