[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:
@@ -1929,6 +1929,7 @@ static int __devinit de_init_one (struct pci_dev *pdev,
|
||||
void __iomem *regs;
|
||||
unsigned long pciaddr;
|
||||
static int board_idx = -1;
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
board_idx++;
|
||||
|
||||
@@ -2042,15 +2043,11 @@ static int __devinit de_init_one (struct pci_dev *pdev,
|
||||
goto err_out_iomap;
|
||||
|
||||
/* print info about board and interface just registered */
|
||||
printk (KERN_INFO "%s: %s at 0x%lx, "
|
||||
"%02x:%02x:%02x:%02x:%02x:%02x, "
|
||||
"IRQ %d\n",
|
||||
printk (KERN_INFO "%s: %s at 0x%lx, %s, IRQ %d\n",
|
||||
dev->name,
|
||||
de->de21040 ? "21040" : "21041",
|
||||
dev->base_addr,
|
||||
dev->dev_addr[0], dev->dev_addr[1],
|
||||
dev->dev_addr[2], dev->dev_addr[3],
|
||||
dev->dev_addr[4], dev->dev_addr[5],
|
||||
print_mac(mac, dev->dev_addr),
|
||||
dev->irq);
|
||||
|
||||
pci_set_drvdata(pdev, dev);
|
||||
|
Reference in New Issue
Block a user