[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>
此提交包含在:
Joe Perches
2007-10-03 17:59:30 -07:00
提交者 David S. Miller
父節點 95ea36275f
當前提交 0795af5729
共有 228 個檔案被更改,包括 1876 行新增1953 行删除

查看文件

@@ -638,6 +638,7 @@ static int __devinit rhine_init_one(struct pci_dev *pdev,
#else
int bar = 0;
#endif
DECLARE_MAC_BUF(mac);
/* when built into the kernel, we only print version if device is found */
#ifndef MODULE
@@ -794,18 +795,14 @@ static int __devinit rhine_init_one(struct pci_dev *pdev,
if (rc)
goto err_out_unmap;
printk(KERN_INFO "%s: VIA %s at 0x%lx, ",
printk(KERN_INFO "%s: VIA %s at 0x%lx, %s, IRQ %d.\n",
dev->name, name,
#ifdef USE_MMIO
memaddr
memaddr,
#else
(long)ioaddr
(long)ioaddr,
#endif
);
for (i = 0; i < 5; i++)
printk("%2.2x:", dev->dev_addr[i]);
printk("%2.2x, IRQ %d.\n", dev->dev_addr[i], pdev->irq);
print_mac(mac, dev->dev_addr), pdev->irq);
pci_set_drvdata(pdev, dev);