[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>
Esse commit está contido em:
@@ -292,6 +292,7 @@ static int axnet_config(struct pcmcia_device *link)
|
||||
cisparse_t parse;
|
||||
int i, j, last_ret, last_fn;
|
||||
u_short buf[64];
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
DEBUG(0, "axnet_config(0x%p)\n", link);
|
||||
|
||||
@@ -403,11 +404,11 @@ static int axnet_config(struct pcmcia_device *link)
|
||||
|
||||
strcpy(info->node.dev_name, dev->name);
|
||||
|
||||
printk(KERN_INFO "%s: Asix AX88%d90: io %#3lx, irq %d, hw_addr ",
|
||||
printk(KERN_INFO "%s: Asix AX88%d90: io %#3lx, irq %d, "
|
||||
"hw_addr %s\n",
|
||||
dev->name, ((info->flags & IS_AX88790) ? 7 : 1),
|
||||
dev->base_addr, dev->irq);
|
||||
for (i = 0; i < 6; i++)
|
||||
printk("%02X%s", dev->dev_addr[i], ((i<5) ? ":" : "\n"));
|
||||
dev->base_addr, dev->irq,
|
||||
print_mac(mac, dev->dev_addr));
|
||||
if (info->phy_id != -1) {
|
||||
DEBUG(0, " MII transceiver at index %d, status %x.\n", info->phy_id, j);
|
||||
} else {
|
||||
|
Referência em uma nova issue
Block a user