[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>
This commit is contained in:

committed by
David S. Miller

parent
95ea36275f
commit
0795af5729
@@ -404,6 +404,7 @@ static int __devinit sis900_probe(struct pci_dev *pci_dev,
|
||||
int i, ret;
|
||||
const char *card_name = card_names[pci_id->driver_data];
|
||||
const char *dev_name = pci_name(pci_dev);
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
/* when built into the kernel, we only print version if device is found */
|
||||
#ifndef MODULE
|
||||
@@ -533,11 +534,9 @@ static int __devinit sis900_probe(struct pci_dev *pci_dev,
|
||||
goto err_unmap_rx;
|
||||
|
||||
/* print some information about our NIC */
|
||||
printk(KERN_INFO "%s: %s at %#lx, IRQ %d, ", net_dev->name,
|
||||
card_name, ioaddr, net_dev->irq);
|
||||
for (i = 0; i < 5; i++)
|
||||
printk("%2.2x:", (u8)net_dev->dev_addr[i]);
|
||||
printk("%2.2x.\n", net_dev->dev_addr[i]);
|
||||
printk(KERN_INFO "%s: %s at %#lx, IRQ %d, %s\n",
|
||||
net_dev->name, card_name, ioaddr, net_dev->irq,
|
||||
print_mac(mac, net_dev->dev_addr));
|
||||
|
||||
/* Detect Wake on Lan support */
|
||||
ret = (inl(net_dev->base_addr + CFGPMC) & PMESP) >> 27;
|
||||
|
Reference in New Issue
Block a user