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

arch/ia64/hp/sim/simeth.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>
parent 6ac8f069
...@@ -193,7 +193,7 @@ simeth_probe1(void) ...@@ -193,7 +193,7 @@ simeth_probe1(void)
unsigned char mac_addr[ETH_ALEN]; unsigned char mac_addr[ETH_ALEN];
struct simeth_local *local; struct simeth_local *local;
struct net_device *dev; struct net_device *dev;
int fd, i, err, rc; int fd, err, rc;
/* /*
* XXX Fix me * XXX Fix me
...@@ -236,12 +236,8 @@ simeth_probe1(void) ...@@ -236,12 +236,8 @@ simeth_probe1(void)
*/ */
netdev_connect(dev->irq); netdev_connect(dev->irq);
printk(KERN_INFO "%s: hosteth=%s simfd=%d, HwAddr", printk(KERN_INFO "%s: hosteth=%s simfd=%d, HwAddr=%pm, IRQ %d\n",
dev->name, simeth_device, local->simfd); dev->name, simeth_device, local->simfd, dev->dev_addr, dev->irq);
for(i = 0; i < ETH_ALEN; i++) {
printk(" %2.2x", dev->dev_addr[i]);
}
printk(", IRQ %d\n", dev->irq);
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