[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
@@ -97,6 +97,7 @@ rio_probe1 (struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
static int version_printed;
|
||||
void *ring_space;
|
||||
dma_addr_t ring_dma;
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
if (!version_printed++)
|
||||
printk ("%s", version);
|
||||
@@ -256,10 +257,8 @@ rio_probe1 (struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
|
||||
card_idx++;
|
||||
|
||||
printk (KERN_INFO "%s: %s, %02x:%02x:%02x:%02x:%02x:%02x, IRQ %d\n",
|
||||
dev->name, np->name,
|
||||
dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2],
|
||||
dev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5], irq);
|
||||
printk (KERN_INFO "%s: %s, %s, IRQ %d\n",
|
||||
dev->name, np->name, print_mac(mac, dev->dev_addr), irq);
|
||||
if (tx_coalesce > 1)
|
||||
printk(KERN_INFO "tx_coalesce:\t%d packets\n",
|
||||
tx_coalesce);
|
||||
|
Reference in New Issue
Block a user