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/mac89x0.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/mac89x0.c')
-rw-r--r-- | drivers/net/mac89x0.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/mac89x0.c b/drivers/net/mac89x0.c index f6f3fdfe41db..30854f094965 100644 --- a/drivers/net/mac89x0.c +++ b/drivers/net/mac89x0.c | |||
@@ -181,6 +181,7 @@ struct net_device * __init mac89x0_probe(int unit) | |||
181 | unsigned long ioaddr; | 181 | unsigned long ioaddr; |
182 | unsigned short sig; | 182 | unsigned short sig; |
183 | int err = -ENODEV; | 183 | int err = -ENODEV; |
184 | DECLARE_MAC_BUF(mac); | ||
184 | 185 | ||
185 | dev = alloc_etherdev(sizeof(struct net_local)); | 186 | dev = alloc_etherdev(sizeof(struct net_local)); |
186 | if (!dev) | 187 | if (!dev) |
@@ -272,13 +273,11 @@ struct net_device * __init mac89x0_probe(int unit) | |||
272 | } | 273 | } |
273 | 274 | ||
274 | dev->irq = SLOT2IRQ(slot); | 275 | dev->irq = SLOT2IRQ(slot); |
275 | printk(" IRQ %d ADDR ", dev->irq); | ||
276 | 276 | ||
277 | /* print the ethernet address. */ | 277 | /* print the IRQ and ethernet address. */ |
278 | for (i = 0; i < ETH_ALEN; i++) | 278 | |
279 | printk("%2.2x%s", dev->dev_addr[i], | 279 | printk(" IRQ %d ADDR %s\n", |
280 | ((i < ETH_ALEN-1) ? ":" : "")); | 280 | dev->irq, print_mac(mac, dev->dev_addr)); |
281 | printk("\n"); | ||
282 | 281 | ||
283 | dev->open = net_open; | 282 | dev->open = net_open; |
284 | dev->stop = net_close; | 283 | dev->stop = net_close; |