aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ne2k-pci.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/ne2k-pci.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/ne2k-pci.c')
-rw-r--r--drivers/net/ne2k-pci.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/ne2k-pci.c b/drivers/net/ne2k-pci.c
index a5879672903e..b569c90da4ba 100644
--- a/drivers/net/ne2k-pci.c
+++ b/drivers/net/ne2k-pci.c
@@ -212,6 +212,7 @@ static int __devinit ne2k_pci_init_one (struct pci_dev *pdev,
212 static unsigned int fnd_cnt; 212 static unsigned int fnd_cnt;
213 long ioaddr; 213 long ioaddr;
214 int flags = pci_clone_list[chip_idx].flags; 214 int flags = pci_clone_list[chip_idx].flags;
215 DECLARE_MAC_BUF(mac);
215 216
216/* when built into the kernel, we only print version if device is found */ 217/* when built into the kernel, we only print version if device is found */
217#ifndef MODULE 218#ifndef MODULE
@@ -365,12 +366,12 @@ static int __devinit ne2k_pci_init_one (struct pci_dev *pdev,
365 if (i) 366 if (i)
366 goto err_out_free_netdev; 367 goto err_out_free_netdev;
367 368
368 printk("%s: %s found at %#lx, IRQ %d, ", 369 for(i = 0; i < 6; i++)
369 dev->name, pci_clone_list[chip_idx].name, ioaddr, dev->irq);
370 for(i = 0; i < 6; i++) {
371 printk("%2.2X%s", SA_prom[i], i == 5 ? ".\n": ":");
372 dev->dev_addr[i] = SA_prom[i]; 370 dev->dev_addr[i] = SA_prom[i];
373 } 371 printk("%s: %s found at %#lx, IRQ %d, %s.\n",
372 dev->name, pci_clone_list[chip_idx].name, ioaddr, dev->irq,
373 print_mac(mac, dev->dev_addr));
374
374 memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len); 375 memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
375 376
376 return 0; 377 return 0;