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/smc91c92_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/smc91c92_cs.c')
-rw-r--r-- | drivers/net/pcmcia/smc91c92_cs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c index b25f1985d03e..58d716fd17cf 100644 --- a/drivers/net/pcmcia/smc91c92_cs.c +++ b/drivers/net/pcmcia/smc91c92_cs.c | |||
@@ -962,6 +962,7 @@ static int smc91c92_config(struct pcmcia_device *link) | |||
962 | int i, j, rev; | 962 | int i, j, rev; |
963 | kio_addr_t ioaddr; | 963 | kio_addr_t ioaddr; |
964 | u_long mir; | 964 | u_long mir; |
965 | DECLARE_MAC_BUF(mac); | ||
965 | 966 | ||
966 | DEBUG(0, "smc91c92_config(0x%p)\n", link); | 967 | DEBUG(0, "smc91c92_config(0x%p)\n", link); |
967 | 968 | ||
@@ -1074,10 +1075,9 @@ static int smc91c92_config(struct pcmcia_device *link) | |||
1074 | strcpy(smc->node.dev_name, dev->name); | 1075 | strcpy(smc->node.dev_name, dev->name); |
1075 | 1076 | ||
1076 | printk(KERN_INFO "%s: smc91c%s rev %d: io %#3lx, irq %d, " | 1077 | printk(KERN_INFO "%s: smc91c%s rev %d: io %#3lx, irq %d, " |
1077 | "hw_addr ", dev->name, name, (rev & 0x0f), dev->base_addr, | 1078 | "hw_addr %s\n", |
1078 | dev->irq); | 1079 | dev->name, name, (rev & 0x0f), dev->base_addr, dev->irq, |
1079 | for (i = 0; i < 6; i++) | 1080 | print_mac(mac, dev->dev_addr)); |
1080 | printk("%02X%s", dev->dev_addr[i], ((i<5) ? ":" : "\n")); | ||
1081 | 1081 | ||
1082 | if (rev > 0) { | 1082 | if (rev > 0) { |
1083 | if (mir & 0x3ff) | 1083 | if (mir & 0x3ff) |