Skip to content

Commit

Permalink
arch/ia64/hp/sim/simeth.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>
  • Loading branch information
Danny Kukawka authored and David S. Miller committed Feb 24, 2012
1 parent 6ac8f06 commit ff40a67
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions arch/ia64/hp/sim/simeth.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ simeth_probe1(void)
unsigned char mac_addr[ETH_ALEN];
struct simeth_local *local;
struct net_device *dev;
int fd, i, err, rc;
int fd, err, rc;

/*
* XXX Fix me
Expand Down Expand Up @@ -236,12 +236,8 @@ simeth_probe1(void)
*/
netdev_connect(dev->irq);

printk(KERN_INFO "%s: hosteth=%s simfd=%d, HwAddr",
dev->name, simeth_device, local->simfd);
for(i = 0; i < ETH_ALEN; i++) {
printk(" %2.2x", dev->dev_addr[i]);
}
printk(", IRQ %d\n", dev->irq);
printk(KERN_INFO "%s: hosteth=%s simfd=%d, HwAddr=%pm, IRQ %d\n",
dev->name, simeth_device, local->simfd, dev->dev_addr, dev->irq);

return 0;
}
Expand Down

0 comments on commit ff40a67

Please sign in to comment.