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/smc-mca.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/smc-mca.c')
-rw-r--r-- | drivers/net/smc-mca.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/smc-mca.c b/drivers/net/smc-mca.c index 3b43fa8fd088..d6abb68e6e2f 100644 --- a/drivers/net/smc-mca.c +++ b/drivers/net/smc-mca.c | |||
@@ -196,6 +196,7 @@ static int __init ultramca_probe(struct device *gen_dev) | |||
196 | int tirq = 0; | 196 | int tirq = 0; |
197 | int base_addr = ultra_io[ultra_found]; | 197 | int base_addr = ultra_io[ultra_found]; |
198 | int irq = ultra_irq[ultra_found]; | 198 | int irq = ultra_irq[ultra_found]; |
199 | DECLARE_MAC_BUF(mac); | ||
199 | 200 | ||
200 | if (base_addr || irq) { | 201 | if (base_addr || irq) { |
201 | printk(KERN_INFO "Probing for SMC MCA adapter"); | 202 | printk(KERN_INFO "Probing for SMC MCA adapter"); |
@@ -330,10 +331,11 @@ static int __init ultramca_probe(struct device *gen_dev) | |||
330 | reg4 = inb(ioaddr + 4) & 0x7f; | 331 | reg4 = inb(ioaddr + 4) & 0x7f; |
331 | outb(reg4, ioaddr + 4); | 332 | outb(reg4, ioaddr + 4); |
332 | 333 | ||
333 | printk(KERN_INFO "smc_mca[%d]: Parameters: %#3x,", slot + 1, ioaddr); | ||
334 | |||
335 | for (i = 0; i < 6; i++) | 334 | for (i = 0; i < 6; i++) |
336 | printk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i)); | 335 | dev->dev_addr[i] = inb(ioaddr + 8 + i); |
336 | |||
337 | printk(KERN_INFO "smc_mca[%d]: Parameters: %#3x, %s", | ||
338 | slot + 1, ioaddr, print_mac(mac, dev->dev_addr)); | ||
337 | 339 | ||
338 | /* Switch from the station address to the alternate register set | 340 | /* Switch from the station address to the alternate register set |
339 | * and read the useful registers there. | 341 | * and read the useful registers there. |