Commit f27fd499 authored by Danny Kukawka's avatar Danny Kukawka Committed by David S. Miller

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: default avatarDanny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bc2f7996
...@@ -89,7 +89,6 @@ static int __devinit hplance_init_one(struct dio_dev *d, ...@@ -89,7 +89,6 @@ static int __devinit hplance_init_one(struct dio_dev *d,
{ {
struct net_device *dev; struct net_device *dev;
int err = -ENOMEM; int err = -ENOMEM;
int i;
dev = alloc_etherdev(sizeof(struct hplance_private)); dev = alloc_etherdev(sizeof(struct hplance_private));
if (!dev) if (!dev)
...@@ -107,13 +106,8 @@ static int __devinit hplance_init_one(struct dio_dev *d, ...@@ -107,13 +106,8 @@ static int __devinit hplance_init_one(struct dio_dev *d,
dio_set_drvdata(d, dev); 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]); printk(KERN_INFO "%s: %s; select code %d, addr %pM, irq %d\n",
dev->name, d->name, d->scode, dev->dev_addr, d->ipl);
for (i=1; i<6; i++) {
printk(":%2.2x", dev->dev_addr[i]);
}
printk(", irq %d\n", d->ipl);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment