aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pcmcia/3c574_cs.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2007-10-03 20:59:30 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:51:42 -0400
commit0795af5729b18218767fab27c44b1384f72dc9ad (patch)
tree67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /drivers/net/pcmcia/3c574_cs.c
parent95ea36275f3c9a1d3d04c217b4b576c657c4e70e (diff)
[NET]: Introduce and use print_mac() and DECLARE_MAC_BUF()
This is nicer than the MAC_FMT stuff. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/pcmcia/3c574_cs.c')
-rw-r--r--drivers/net/pcmcia/3c574_cs.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/pcmcia/3c574_cs.c b/drivers/net/pcmcia/3c574_cs.c
index 2b395ee21f75..73dcbb7296da 100644
--- a/drivers/net/pcmcia/3c574_cs.c
+++ b/drivers/net/pcmcia/3c574_cs.c
@@ -343,6 +343,7 @@ static int tc574_config(struct pcmcia_device *link)
343 u16 *phys_addr; 343 u16 *phys_addr;
344 char *cardname; 344 char *cardname;
345 union wn3_config config; 345 union wn3_config config;
346 DECLARE_MAC_BUF(mac);
346 347
347 phys_addr = (u16 *)dev->dev_addr; 348 phys_addr = (u16 *)dev->dev_addr;
348 349
@@ -458,10 +459,10 @@ static int tc574_config(struct pcmcia_device *link)
458 459
459 strcpy(lp->node.dev_name, dev->name); 460 strcpy(lp->node.dev_name, dev->name);
460 461
461 printk(KERN_INFO "%s: %s at io %#3lx, irq %d, hw_addr ", 462 printk(KERN_INFO "%s: %s at io %#3lx, irq %d, "
462 dev->name, cardname, dev->base_addr, dev->irq); 463 "hw_addr %s.\n",
463 for (i = 0; i < 6; i++) 464 dev->name, cardname, dev->base_addr, dev->irq,
464 printk("%02X%s", dev->dev_addr[i], ((i<5) ? ":" : ".\n")); 465 print_mac(mac, dev->dev_addr));
465 printk(" %dK FIFO split %s Rx:Tx, %sMII interface.\n", 466 printk(" %dK FIFO split %s Rx:Tx, %sMII interface.\n",
466 8 << config.u.ram_size, ram_split[config.u.ram_split], 467 8 << config.u.ram_size, ram_split[config.u.ram_split],
467 config.u.autoselect ? "autoselect " : ""); 468 config.u.autoselect ? "autoselect " : "");