Skip to content

Commit

Permalink
drivers/net/smc911x.c: use %pM to shown MAC address
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H Hartley Sweeten authored and David S. Miller committed Dec 30, 2009
1 parent b18fe47 commit fa876b4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/net/smc911x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fa876b4

Please sign in to comment.