aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pcmcia/3c589_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/3c589_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/3c589_cs.c')
-rw-r--r--drivers/net/pcmcia/3c589_cs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/pcmcia/3c589_cs.c b/drivers/net/pcmcia/3c589_cs.c
index 2136c80c0581..32076ca6a9e1 100644
--- a/drivers/net/pcmcia/3c589_cs.c
+++ b/drivers/net/pcmcia/3c589_cs.c
@@ -255,6 +255,7 @@ static int tc589_config(struct pcmcia_device *link)
255 int last_fn, last_ret, i, j, multi = 0, fifo; 255 int last_fn, last_ret, i, j, multi = 0, fifo;
256 kio_addr_t ioaddr; 256 kio_addr_t ioaddr;
257 char *ram_split[] = {"5:3", "3:1", "1:1", "3:5"}; 257 char *ram_split[] = {"5:3", "3:1", "1:1", "3:5"};
258 DECLARE_MAC_BUF(mac);
258 259
259 DEBUG(0, "3c589_config(0x%p)\n", link); 260 DEBUG(0, "3c589_config(0x%p)\n", link);
260 261
@@ -330,11 +331,10 @@ static int tc589_config(struct pcmcia_device *link)
330 331
331 strcpy(lp->node.dev_name, dev->name); 332 strcpy(lp->node.dev_name, dev->name);
332 333
333 printk(KERN_INFO "%s: 3Com 3c%s, io %#3lx, irq %d, hw_addr ", 334 printk(KERN_INFO "%s: 3Com 3c%s, io %#3lx, irq %d, "
334 dev->name, (multi ? "562" : "589"), dev->base_addr, 335 "hw_addr %s\n",
335 dev->irq); 336 dev->name, (multi ? "562" : "589"), dev->base_addr, dev->irq,
336 for (i = 0; i < 6; i++) 337 print_mac(mac, dev->dev_addr));
337 printk("%02X%s", dev->dev_addr[i], ((i<5) ? ":" : "\n"));
338 printk(KERN_INFO " %dK FIFO split %s Rx:Tx, %s xcvr\n", 338 printk(KERN_INFO " %dK FIFO split %s Rx:Tx, %s xcvr\n",
339 (fifo & 7) ? 32 : 8, ram_split[(fifo >> 16) & 3], 339 (fifo & 7) ? 32 : 8, ram_split[(fifo >> 16) & 3],
340 if_names[dev->if_port]); 340 if_names[dev->if_port]);