diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-27 18:59:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-27 20:06:18 -0400 |
commit | e174961ca1a0b28f7abf0be47973ad57cb74e5f0 (patch) | |
tree | e8f74ecd420a0e380a71670e5aec5c2a0c15640a /drivers/net/ne2.c | |
parent | 0c68ae2605dbcf67414d8d1f19af93be44b355fb (diff) |
net: convert print_mac to %pM
This converts pretty much everything to print_mac. There were
a few things that had conflicts which I have just dropped for
now, no harm done.
I've built an allyesconfig with this and looked at the files
that weren't built very carefully, but it's a huge patch.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ne2.c')
-rw-r--r-- | drivers/net/ne2.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/ne2.c b/drivers/net/ne2.c index 332df75a9ab6..6f8f32603466 100644 --- a/drivers/net/ne2.c +++ b/drivers/net/ne2.c | |||
@@ -302,7 +302,6 @@ out: | |||
302 | static int ne2_procinfo(char *buf, int slot, struct net_device *dev) | 302 | static int ne2_procinfo(char *buf, int slot, struct net_device *dev) |
303 | { | 303 | { |
304 | int len=0; | 304 | int len=0; |
305 | DECLARE_MAC_BUF(mac); | ||
306 | 305 | ||
307 | len += sprintf(buf+len, "The NE/2 Ethernet Adapter\n" ); | 306 | len += sprintf(buf+len, "The NE/2 Ethernet Adapter\n" ); |
308 | len += sprintf(buf+len, "Driver written by Wim Dumon "); | 307 | len += sprintf(buf+len, "Driver written by Wim Dumon "); |
@@ -313,7 +312,7 @@ static int ne2_procinfo(char *buf, int slot, struct net_device *dev) | |||
313 | len += sprintf(buf+len, "Based on the original NE2000 drivers\n" ); | 312 | len += sprintf(buf+len, "Based on the original NE2000 drivers\n" ); |
314 | len += sprintf(buf+len, "Base IO: %#x\n", (unsigned int)dev->base_addr); | 313 | len += sprintf(buf+len, "Base IO: %#x\n", (unsigned int)dev->base_addr); |
315 | len += sprintf(buf+len, "IRQ : %d\n", dev->irq); | 314 | len += sprintf(buf+len, "IRQ : %d\n", dev->irq); |
316 | len += sprintf(buf+len, "HW addr : %s\n", print_mac(mac, dev->dev_addr)); | 315 | len += sprintf(buf+len, "HW addr : %pM\n", dev->dev_addr); |
317 | 316 | ||
318 | return len; | 317 | return len; |
319 | } | 318 | } |
@@ -326,7 +325,6 @@ static int __init ne2_probe1(struct net_device *dev, int slot) | |||
326 | const char *name = "NE/2"; | 325 | const char *name = "NE/2"; |
327 | int start_page, stop_page; | 326 | int start_page, stop_page; |
328 | static unsigned version_printed; | 327 | static unsigned version_printed; |
329 | DECLARE_MAC_BUF(mac); | ||
330 | 328 | ||
331 | if (ei_debug && version_printed++ == 0) | 329 | if (ei_debug && version_printed++ == 0) |
332 | printk(version); | 330 | printk(version); |
@@ -469,7 +467,7 @@ static int __init ne2_probe1(struct net_device *dev, int slot) | |||
469 | for(i = 0; i < ETHER_ADDR_LEN; i++) | 467 | for(i = 0; i < ETHER_ADDR_LEN; i++) |
470 | dev->dev_addr[i] = SA_prom[i]; | 468 | dev->dev_addr[i] = SA_prom[i]; |
471 | 469 | ||
472 | printk(" %s\n", print_mac(mac, dev->dev_addr)); | 470 | printk(" %pM\n", dev->dev_addr); |
473 | 471 | ||
474 | printk("%s: %s found at %#x, using IRQ %d.\n", | 472 | printk("%s: %s found at %#x, using IRQ %d.\n", |
475 | dev->name, name, base_addr, dev->irq); | 473 | dev->name, name, base_addr, dev->irq); |