diff options
author | Danny Kukawka <danny.kukawka@bisect.de> | 2012-02-24 03:45:53 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-24 15:40:59 -0500 |
commit | f27fd49962dc0f608e5547fc7ae98a8243570610 (patch) | |
tree | a54c7eb60be908879196790c88d7f8e9760949e8 /drivers/net/ethernet/amd | |
parent | bc2f7996858db66f2d5b154aac10971655f72cad (diff) | |
download | linux-3.10-f27fd49962dc0f608e5547fc7ae98a8243570610.tar.gz linux-3.10-f27fd49962dc0f608e5547fc7ae98a8243570610.tar.bz2 linux-3.10-f27fd49962dc0f608e5547fc7ae98a8243570610.zip |
amd/hplance.c: 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/ethernet/amd')
-rw-r--r-- | drivers/net/ethernet/amd/hplance.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/net/ethernet/amd/hplance.c b/drivers/net/ethernet/amd/hplance.c index 86aa0d546a5..4e2d68a4de8 100644 --- a/drivers/net/ethernet/amd/hplance.c +++ b/drivers/net/ethernet/amd/hplance.c @@ -89,7 +89,6 @@ static int __devinit hplance_init_one(struct dio_dev *d, { struct net_device *dev; int err = -ENOMEM; - int i; dev = alloc_etherdev(sizeof(struct hplance_private)); if (!dev) @@ -107,13 +106,8 @@ static int __devinit hplance_init_one(struct dio_dev *d, dio_set_drvdata(d, dev); - printk(KERN_INFO "%s: %s; select code %d, addr %2.2x", dev->name, d->name, d->scode, dev->dev_addr[0]); - - for (i=1; i<6; i++) { - printk(":%2.2x", dev->dev_addr[i]); - } - - printk(", irq %d\n", d->ipl); + printk(KERN_INFO "%s: %s; select code %d, addr %pM, irq %d\n", + dev->name, d->name, d->scode, dev->dev_addr, d->ipl); return 0; |