aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ne-h8300.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/ne-h8300.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/ne-h8300.c')
-rw-r--r--drivers/net/ne-h8300.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ne-h8300.c b/drivers/net/ne-h8300.c
index 2b85d1b53344..368f2560856d 100644
--- a/drivers/net/ne-h8300.c
+++ b/drivers/net/ne-h8300.c
@@ -204,6 +204,7 @@ static int __init ne_probe1(struct net_device *dev, int ioaddr)
204 static unsigned version_printed; 204 static unsigned version_printed;
205 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev); 205 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev);
206 unsigned char bus_width; 206 unsigned char bus_width;
207 DECLARE_MAC_BUF(mac);
207 208
208 if (!request_region(ioaddr, NE_IO_EXTENT, DRV_NAME)) 209 if (!request_region(ioaddr, NE_IO_EXTENT, DRV_NAME))
209 return -EBUSY; 210 return -EBUSY;
@@ -296,12 +297,11 @@ static int __init ne_probe1(struct net_device *dev, int ioaddr)
296 297
297 dev->base_addr = ioaddr; 298 dev->base_addr = ioaddr;
298 299
299 for(i = 0; i < ETHER_ADDR_LEN; i++) { 300 for(i = 0; i < ETHER_ADDR_LEN; i++)
300 printk(" %2.2x", SA_prom[i]);
301 dev->dev_addr[i] = SA_prom[i]; 301 dev->dev_addr[i] = SA_prom[i];
302 } 302 printk(" %s\n", print_mac(mac, dev->dev_addr));
303 303
304 printk("\n%s: %s found at %#x, using IRQ %d.\n", 304 printk("%s: %s found at %#x, using IRQ %d.\n",
305 dev->name, name, ioaddr, dev->irq); 305 dev->name, name, ioaddr, dev->irq);
306 306
307 ei_status.name = name; 307 ei_status.name = name;