mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
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:
parent
b18fe4777f
commit
fa876b474a
1 changed files with 2 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue