summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorDanny Kukawka <danny.kukawka@bisect.de>2012-02-24 03:45:57 +0000
committerDavid S. Miller <davem@davemloft.net>2012-02-24 15:40:59 -0500
commitd558950efcfb005771151cb843ac906355ad5ef4 (patch)
treea7e53fdf853d731d7a3f16ab678e127dec11cd30 /drivers/net
parentf794e7efe40147ed0c34f889b75298fec10e66b8 (diff)
downloadlinux-stable-d558950efcfb005771151cb843ac906355ad5ef4.tar.gz
linux-stable-d558950efcfb005771151cb843ac906355ad5ef4.tar.bz2
linux-stable-d558950efcfb005771151cb843ac906355ad5ef4.zip
sun/sunqe: 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> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/sun/sunqe.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/net/ethernet/sun/sunqe.c b/drivers/net/ethernet/sun/sunqe.c
index b42d1c5a6ca1..139d6b410d68 100644
--- a/drivers/net/ethernet/sun/sunqe.c
+++ b/drivers/net/ethernet/sun/sunqe.c
@@ -907,14 +907,8 @@ static int __devinit qec_ether_init(struct platform_device *op)
dev_set_drvdata(&op->dev, qe);
- printk(KERN_INFO "%s: qe channel[%d] ", dev->name, qe->channel);
- for (i = 0; i < 6; i++)
- printk ("%2.2x%c",
- dev->dev_addr[i],
- i == 5 ? ' ': ':');
- printk("\n");
-
-
+ printk(KERN_INFO "%s: qe channel[%d] %pM\n", dev->name, qe->channel,
+ dev->dev_addr);
return 0;
fail: