diff options
author | Danny Kukawka <danny.kukawka@bisect.de> | 2012-02-23 22:45:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-24 15:41:00 -0500 |
commit | 2d5ba835514c75dd06b9be8118977573dff4b5b8 (patch) | |
tree | cebae997dd3cb9b7ad234018741fa7dc2e6c76af /drivers/net/ethernet/xscale | |
parent | d558950efcfb005771151cb843ac906355ad5ef4 (diff) |
xscale/ixp2000/ixpdev: print MAC via printk format specifier
Print MAC/dev_addr via printk extended format specifier %pM
instead of custom code.
Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Acked-by: Lennert Buytenhek <kernel@wantstofly.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/xscale')
-rw-r--r-- | drivers/net/ethernet/xscale/ixp2000/ixpdev.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/ethernet/xscale/ixp2000/ixpdev.c b/drivers/net/ethernet/xscale/ixp2000/ixpdev.c index e122493ab70e..45008377c8bf 100644 --- a/drivers/net/ethernet/xscale/ixp2000/ixpdev.c +++ b/drivers/net/ethernet/xscale/ixp2000/ixpdev.c | |||
@@ -398,11 +398,8 @@ int ixpdev_init(int __nds_count, struct net_device **__nds, | |||
398 | } | 398 | } |
399 | 399 | ||
400 | for (i = 0; i < nds_count; i++) { | 400 | for (i = 0; i < nds_count; i++) { |
401 | printk(KERN_INFO "%s: IXP2000 MSF ethernet (port %d), " | 401 | printk(KERN_INFO "%s: IXP2000 MSF ethernet (port %d), %pM.\n", |
402 | "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x.\n", nds[i]->name, i, | 402 | nds[i]->name, i, nds[i]->dev_addr); |
403 | nds[i]->dev_addr[0], nds[i]->dev_addr[1], | ||
404 | nds[i]->dev_addr[2], nds[i]->dev_addr[3], | ||
405 | nds[i]->dev_addr[4], nds[i]->dev_addr[5]); | ||
406 | } | 403 | } |
407 | 404 | ||
408 | return 0; | 405 | return 0; |