Skip to content

Commit

Permalink
amd/hplance.c: print MAC via printk format specifier
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Danny Kukawka authored and David S. Miller committed Feb 24, 2012
1 parent bc2f799 commit f27fd49
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions drivers/net/ethernet/amd/hplance.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;

Expand Down

0 comments on commit f27fd49

Please sign in to comment.