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/declance.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/declance.c')
-rw-r--r-- | drivers/net/declance.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/declance.c b/drivers/net/declance.c index 7e7ac3330e60..00e0194bfef0 100644 --- a/drivers/net/declance.c +++ b/drivers/net/declance.c | |||
@@ -1027,6 +1027,7 @@ static int __init dec_lance_probe(struct device *bdev, const int type) | |||
1027 | int i, ret; | 1027 | int i, ret; |
1028 | unsigned long esar_base; | 1028 | unsigned long esar_base; |
1029 | unsigned char *esar; | 1029 | unsigned char *esar; |
1030 | DECLARE_MAC_BUF(mac); | ||
1030 | 1031 | ||
1031 | if (dec_lance_debug && version_printed++ == 0) | 1032 | if (dec_lance_debug && version_printed++ == 0) |
1032 | printk(version); | 1033 | printk(version); |
@@ -1214,21 +1215,20 @@ static int __init dec_lance_probe(struct device *bdev, const int type) | |||
1214 | */ | 1215 | */ |
1215 | switch (type) { | 1216 | switch (type) { |
1216 | case ASIC_LANCE: | 1217 | case ASIC_LANCE: |
1217 | printk("%s: IOASIC onboard LANCE, addr = ", name); | 1218 | printk("%s: IOASIC onboard LANCE", name); |
1218 | break; | 1219 | break; |
1219 | case PMAD_LANCE: | 1220 | case PMAD_LANCE: |
1220 | printk("%s: PMAD-AA, addr = ", name); | 1221 | printk("%s: PMAD-AA", name); |
1221 | break; | 1222 | break; |
1222 | case PMAX_LANCE: | 1223 | case PMAX_LANCE: |
1223 | printk("%s: PMAX onboard LANCE, addr = ", name); | 1224 | printk("%s: PMAX onboard LANCE", name); |
1224 | break; | 1225 | break; |
1225 | } | 1226 | } |
1226 | for (i = 0; i < 6; i++) { | 1227 | for (i = 0; i < 6; i++) |
1227 | dev->dev_addr[i] = esar[i * 4]; | 1228 | dev->dev_addr[i] = esar[i * 4]; |
1228 | printk("%2.2x%c", dev->dev_addr[i], i == 5 ? ',' : ':'); | ||
1229 | } | ||
1230 | 1229 | ||
1231 | printk(" irq = %d\n", dev->irq); | 1230 | printk(", addr = %s, irq = %d\n", |
1231 | print_mac(mac, dev->dev_addr), dev->irq); | ||
1232 | 1232 | ||
1233 | dev->open = &lance_open; | 1233 | dev->open = &lance_open; |
1234 | dev->stop = &lance_close; | 1234 | dev->stop = &lance_close; |