projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b18fe47
)
drivers/net/smc911x.c: use %pM to shown MAC address
author
H Hartley Sweeten
<hsweeten@visionengravers.com>
Wed, 30 Dec 2009 04:08:09 +0000
(20:08 -0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 30 Dec 2009 04:08:09 +0000
(20:08 -0800)
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>
drivers/net/smc911x.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/smc911x.c
b/drivers/net/smc911x.c
index 44ebbaa7457bbaeb4a9633256f98f879280e79a1..3c5a4f52345c6b49c185c6c7c47a47c2f8e97e8d 100644
(file)
--- a/
drivers/net/smc911x.c
+++ b/
drivers/net/smc911x.c
@@
-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) {