diff options
author | Danny Kukawka <danny.kukawka@bisect.de> | 2012-02-24 08:46:02 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-24 15:41:41 -0500 |
commit | 5d74f1757001f5b9a7739c2a9053435e16ce516b (patch) | |
tree | 69b46affc37050211bb3eb3b383e53c663d331aa /drivers/staging | |
parent | 3274ce71fede837176e59b1579ac9679dc990117 (diff) |
Staging: wlags49_h2: 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 'drivers/staging')
-rw-r--r-- | drivers/staging/wlags49_h2/wl_cs.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/staging/wlags49_h2/wl_cs.c b/drivers/staging/wlags49_h2/wl_cs.c index 2faee2dd4bb1..a2cbb29c3f59 100644 --- a/drivers/staging/wlags49_h2/wl_cs.c +++ b/drivers/staging/wlags49_h2/wl_cs.c | |||
@@ -229,7 +229,6 @@ static int wl_adapter_resume(struct pcmcia_device *link) | |||
229 | void wl_adapter_insert(struct pcmcia_device *link) | 229 | void wl_adapter_insert(struct pcmcia_device *link) |
230 | { | 230 | { |
231 | struct net_device *dev; | 231 | struct net_device *dev; |
232 | int i; | ||
233 | int ret; | 232 | int ret; |
234 | /*--------------------------------------------------------------------*/ | 233 | /*--------------------------------------------------------------------*/ |
235 | 234 | ||
@@ -266,10 +265,8 @@ void wl_adapter_insert(struct pcmcia_device *link) | |||
266 | 265 | ||
267 | register_wlags_sysfs(dev); | 266 | register_wlags_sysfs(dev); |
268 | 267 | ||
269 | printk(KERN_INFO "%s: Wireless, io_addr %#03lx, irq %d, ""mac_address ", | 268 | printk(KERN_INFO "%s: Wireless, io_addr %#03lx, irq %d, mac_address" |
270 | dev->name, dev->base_addr, dev->irq); | 269 | " %pM\n", dev->name, dev->base_addr, dev->irq, dev->dev_addr); |
271 | for (i = 0; i < ETH_ALEN; i++) | ||
272 | printk("%02X%c", dev->dev_addr[i], ((i < (ETH_ALEN-1)) ? ':' : '\n')); | ||
273 | 270 | ||
274 | DBG_LEAVE(DbgInfo); | 271 | DBG_LEAVE(DbgInfo); |
275 | return; | 272 | return; |