提交 5d74f175 编写于 作者: D Danny Kukawka 提交者: David S. Miller

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: NDanny Kukawka <danny.kukawka@bisect.de>
上级 3274ce71
...@@ -229,7 +229,6 @@ static int wl_adapter_resume(struct pcmcia_device *link) ...@@ -229,7 +229,6 @@ static int wl_adapter_resume(struct pcmcia_device *link)
void wl_adapter_insert(struct pcmcia_device *link) void wl_adapter_insert(struct pcmcia_device *link)
{ {
struct net_device *dev; struct net_device *dev;
int i;
int ret; int ret;
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
...@@ -266,10 +265,8 @@ void wl_adapter_insert(struct pcmcia_device *link) ...@@ -266,10 +265,8 @@ void wl_adapter_insert(struct pcmcia_device *link)
register_wlags_sysfs(dev); register_wlags_sysfs(dev);
printk(KERN_INFO "%s: Wireless, io_addr %#03lx, irq %d, ""mac_address ", printk(KERN_INFO "%s: Wireless, io_addr %#03lx, irq %d, mac_address"
dev->name, dev->base_addr, dev->irq); " %pM\n", dev->name, dev->base_addr, dev->irq, dev->dev_addr);
for (i = 0; i < ETH_ALEN; i++)
printk("%02X%c", dev->dev_addr[i], ((i < (ETH_ALEN-1)) ? ':' : '\n'));
DBG_LEAVE(DbgInfo); DBG_LEAVE(DbgInfo);
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册