diff options
| author | Danny Kukawka <danny.kukawka@bisect.de> | 2012-02-24 08:45:52 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2012-02-24 15:41:15 -0500 |
| commit | ff40a675bba27c990c7b32c2fcc50d3db758b226 (patch) | |
| tree | 23823a8307e65b8da6f9c2b266a94383a2eb3d0e /arch/ia64/hp | |
| parent | 6ac8f069776c4e678448dabdd9bb2dd25dea3186 (diff) | |
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: Danny Kukawka <danny.kukawka@bisect.de>
Diffstat (limited to 'arch/ia64/hp')
| -rw-r--r-- | arch/ia64/hp/sim/simeth.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/ia64/hp/sim/simeth.c b/arch/ia64/hp/sim/simeth.c index 47afcc61f6e5..440001e5714e 100644 --- a/arch/ia64/hp/sim/simeth.c +++ b/arch/ia64/hp/sim/simeth.c | |||
| @@ -193,7 +193,7 @@ simeth_probe1(void) | |||
| 193 | unsigned char mac_addr[ETH_ALEN]; | 193 | unsigned char mac_addr[ETH_ALEN]; |
| 194 | struct simeth_local *local; | 194 | struct simeth_local *local; |
| 195 | struct net_device *dev; | 195 | struct net_device *dev; |
| 196 | int fd, i, err, rc; | 196 | int fd, err, rc; |
| 197 | 197 | ||
| 198 | /* | 198 | /* |
| 199 | * XXX Fix me | 199 | * XXX Fix me |
| @@ -236,12 +236,8 @@ simeth_probe1(void) | |||
| 236 | */ | 236 | */ |
| 237 | netdev_connect(dev->irq); | 237 | netdev_connect(dev->irq); |
| 238 | 238 | ||
| 239 | printk(KERN_INFO "%s: hosteth=%s simfd=%d, HwAddr", | 239 | printk(KERN_INFO "%s: hosteth=%s simfd=%d, HwAddr=%pm, IRQ %d\n", |
| 240 | dev->name, simeth_device, local->simfd); | 240 | dev->name, simeth_device, local->simfd, dev->dev_addr, dev->irq); |
| 241 | for(i = 0; i < ETH_ALEN; i++) { | ||
| 242 | printk(" %2.2x", dev->dev_addr[i]); | ||
| 243 | } | ||
| 244 | printk(", IRQ %d\n", dev->irq); | ||
| 245 | 241 | ||
| 246 | return 0; | 242 | return 0; |
| 247 | } | 243 | } |
