[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
@ -1823,6 +1823,7 @@ static int cp_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
void __iomem *regs;
|
||||
resource_size_t pciaddr;
|
||||
unsigned int addr_len, i, pci_using_dac;
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
#ifndef MODULE
|
||||
static int version_printed;
|
||||
@ -1964,13 +1965,10 @@ static int cp_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
goto err_out_iomap;
|
||||
|
||||
printk (KERN_INFO "%s: RTL-8139C+ at 0x%lx, "
|
||||
"%02x:%02x:%02x:%02x:%02x:%02x, "
|
||||
"IRQ %d\n",
|
||||
"%s, IRQ %d\n",
|
||||
dev->name,
|
||||
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