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/ac3200.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/ac3200.c')
-rw-r--r-- | drivers/net/ac3200.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/ac3200.c b/drivers/net/ac3200.c index 65b2de56ed22..5136d94923aa 100644 --- a/drivers/net/ac3200.c +++ b/drivers/net/ac3200.c | |||
@@ -146,6 +146,7 @@ out: | |||
146 | static int __init ac_probe1(int ioaddr, struct net_device *dev) | 146 | static int __init ac_probe1(int ioaddr, struct net_device *dev) |
147 | { | 147 | { |
148 | int i, retval; | 148 | int i, retval; |
149 | DECLARE_MAC_BUF(mac); | ||
149 | 150 | ||
150 | if (!request_region(ioaddr, AC_IO_EXTENT, DRV_NAME)) | 151 | if (!request_region(ioaddr, AC_IO_EXTENT, DRV_NAME)) |
151 | return -EBUSY; | 152 | return -EBUSY; |
@@ -167,10 +168,11 @@ static int __init ac_probe1(int ioaddr, struct net_device *dev) | |||
167 | inb(ioaddr + AC_ID_PORT + 2), inb(ioaddr + AC_ID_PORT + 3)); | 168 | inb(ioaddr + AC_ID_PORT + 2), inb(ioaddr + AC_ID_PORT + 3)); |
168 | #endif | 169 | #endif |
169 | 170 | ||
170 | printk("AC3200 in EISA slot %d, node", ioaddr/0x1000); | 171 | for (i = 0; i < 6; i++) |
171 | for(i = 0; i < 6; i++) | 172 | dev->dev_addr[i] = inb(ioaddr + AC_SA_PROM + i); |
172 | printk(" %02x", dev->dev_addr[i] = inb(ioaddr + AC_SA_PROM + i)); | ||
173 | 173 | ||
174 | printk(KERN_DEBUG "AC3200 in EISA slot %d, node %s", | ||
175 | ioaddr/0x1000, print_mac(mac, dev->dev_addr)); | ||
174 | #if 0 | 176 | #if 0 |
175 | /* Check the vendor ID/prefix. Redundant after checking the EISA ID */ | 177 | /* Check the vendor ID/prefix. Redundant after checking the EISA ID */ |
176 | if (inb(ioaddr + AC_SA_PROM + 0) != AC_ADDR0 | 178 | if (inb(ioaddr + AC_SA_PROM + 0) != AC_ADDR0 |