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/nmclan_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/nmclan_cs.c')
-rw-r--r-- | drivers/net/pcmcia/nmclan_cs.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/pcmcia/nmclan_cs.c b/drivers/net/pcmcia/nmclan_cs.c index 1bb2ffa294de..a355a93b908b 100644 --- a/drivers/net/pcmcia/nmclan_cs.c +++ b/drivers/net/pcmcia/nmclan_cs.c | |||
@@ -658,6 +658,7 @@ static int nmclan_config(struct pcmcia_device *link) | |||
658 | u_char buf[64]; | 658 | u_char buf[64]; |
659 | int i, last_ret, last_fn; | 659 | int i, last_ret, last_fn; |
660 | kio_addr_t ioaddr; | 660 | kio_addr_t ioaddr; |
661 | DECLARE_MAC_BUF(mac); | ||
661 | 662 | ||
662 | DEBUG(0, "nmclan_config(0x%p)\n", link); | 663 | DEBUG(0, "nmclan_config(0x%p)\n", link); |
663 | 664 | ||
@@ -716,10 +717,10 @@ static int nmclan_config(struct pcmcia_device *link) | |||
716 | 717 | ||
717 | strcpy(lp->node.dev_name, dev->name); | 718 | strcpy(lp->node.dev_name, dev->name); |
718 | 719 | ||
719 | printk(KERN_INFO "%s: nmclan: port %#3lx, irq %d, %s port, hw_addr ", | 720 | printk(KERN_INFO "%s: nmclan: port %#3lx, irq %d, %s port," |
720 | dev->name, dev->base_addr, dev->irq, if_names[dev->if_port]); | 721 | " hw_addr %s\n", |
721 | for (i = 0; i < 6; i++) | 722 | dev->name, dev->base_addr, dev->irq, if_names[dev->if_port], |
722 | printk("%02X%s", dev->dev_addr[i], ((i<5) ? ":" : "\n")); | 723 | print_mac(mac, dev->dev_addr)); |
723 | return 0; | 724 | return 0; |
724 | 725 | ||
725 | cs_failed: | 726 | cs_failed: |