diff options
author | Joe Perches <joe@perches.com> | 2007-10-03 20:59:30 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:42 -0400 |
commit | 0795af5729b18218767fab27c44b1384f72dc9ad (patch) | |
tree | 67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /drivers/net/pcmcia/axnet_cs.c | |
parent | 95ea36275f3c9a1d3d04c217b4b576c657c4e70e (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/axnet_cs.c')
-rw-r--r-- | drivers/net/pcmcia/axnet_cs.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/pcmcia/axnet_cs.c b/drivers/net/pcmcia/axnet_cs.c index 28eea206766d..de59313d10f5 100644 --- a/drivers/net/pcmcia/axnet_cs.c +++ b/drivers/net/pcmcia/axnet_cs.c | |||
@@ -292,6 +292,7 @@ static int axnet_config(struct pcmcia_device *link) | |||
292 | cisparse_t parse; | 292 | cisparse_t parse; |
293 | int i, j, last_ret, last_fn; | 293 | int i, j, last_ret, last_fn; |
294 | u_short buf[64]; | 294 | u_short buf[64]; |
295 | DECLARE_MAC_BUF(mac); | ||
295 | 296 | ||
296 | DEBUG(0, "axnet_config(0x%p)\n", link); | 297 | DEBUG(0, "axnet_config(0x%p)\n", link); |
297 | 298 | ||
@@ -403,11 +404,11 @@ static int axnet_config(struct pcmcia_device *link) | |||
403 | 404 | ||
404 | strcpy(info->node.dev_name, dev->name); | 405 | strcpy(info->node.dev_name, dev->name); |
405 | 406 | ||
406 | printk(KERN_INFO "%s: Asix AX88%d90: io %#3lx, irq %d, hw_addr ", | 407 | printk(KERN_INFO "%s: Asix AX88%d90: io %#3lx, irq %d, " |
408 | "hw_addr %s\n", | ||
407 | dev->name, ((info->flags & IS_AX88790) ? 7 : 1), | 409 | dev->name, ((info->flags & IS_AX88790) ? 7 : 1), |
408 | dev->base_addr, dev->irq); | 410 | dev->base_addr, dev->irq, |
409 | for (i = 0; i < 6; i++) | 411 | print_mac(mac, dev->dev_addr)); |
410 | printk("%02X%s", dev->dev_addr[i], ((i<5) ? ":" : "\n")); | ||
411 | if (info->phy_id != -1) { | 412 | if (info->phy_id != -1) { |
412 | DEBUG(0, " MII transceiver at index %d, status %x.\n", info->phy_id, j); | 413 | DEBUG(0, " MII transceiver at index %d, status %x.\n", info->phy_id, j); |
413 | } else { | 414 | } else { |