aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/lne390.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/lne390.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/lne390.c')
-rw-r--r--drivers/net/lne390.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/lne390.c b/drivers/net/lne390.c
index 2dd396983213..b36989097883 100644
--- a/drivers/net/lne390.c
+++ b/drivers/net/lne390.c
@@ -169,6 +169,7 @@ static int __init lne390_probe1(struct net_device *dev, int ioaddr)
169{ 169{
170 int i, revision, ret; 170 int i, revision, ret;
171 unsigned long eisa_id; 171 unsigned long eisa_id;
172 DECLARE_MAC_BUF(mac);
172 173
173 if (inb_p(ioaddr + LNE390_ID_PORT) == 0xff) return -ENODEV; 174 if (inb_p(ioaddr + LNE390_ID_PORT) == 0xff) return -ENODEV;
174 175
@@ -200,10 +201,12 @@ static int __init lne390_probe1(struct net_device *dev, int ioaddr)
200 } 201 }
201#endif 202#endif
202 203
203 printk("lne390.c: LNE390%X in EISA slot %d, address", 0xa+revision, ioaddr/0x1000);
204 for(i = 0; i < ETHER_ADDR_LEN; i++) 204 for(i = 0; i < ETHER_ADDR_LEN; i++)
205 printk(" %02x", (dev->dev_addr[i] = inb(ioaddr + LNE390_SA_PROM + i))); 205 dev->dev_addr[i] = inb(ioaddr + LNE390_SA_PROM + i);
206 printk(".\nlne390.c: "); 206 printk("lne390.c: LNE390%X in EISA slot %d, address %s.\n",
207 0xa+revision, ioaddr/0x1000, print_mac(mac, dev->dev_addr));
208
209 printk("lne390.c: ");
207 210
208 /* Snarf the interrupt now. CFG file has them all listed as `edge' with share=NO */ 211 /* Snarf the interrupt now. CFG file has them all listed as `edge' with share=NO */
209 if (dev->irq == 0) { 212 if (dev->irq == 0) {