Skip to content

Commit 30a6ae8

Browse files
bigguinessdavem330
authored andcommitted
drivers/net/r8169.c: use %pM to shown MAC address
Use the %pM kernel extension to display the MAC address. Signed-off-by: H Hartley Sweeten <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e583482 commit 30a6ae8

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

drivers/net/r8169.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3188,15 +3188,10 @@ rtl8169_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
31883188
if (netif_msg_probe(tp)) {
31893189
u32 xid = RTL_R32(TxConfig) & 0x9cf0f8ff;
31903190

3191-
printk(KERN_INFO "%s: %s at 0x%lx, "
3192-
"%2.2x:%2.2x:%2.2x:%2.2x:%2.2x:%2.2x, "
3193-
"XID %08x IRQ %d\n",
3191+
printk(KERN_INFO "%s: %s at 0x%lx, %pM, XID %08x IRQ %d\n",
31943192
dev->name,
31953193
rtl_chip_info[tp->chipset].name,
3196-
dev->base_addr,
3197-
dev->dev_addr[0], dev->dev_addr[1],
3198-
dev->dev_addr[2], dev->dev_addr[3],
3199-
dev->dev_addr[4], dev->dev_addr[5], xid, dev->irq);
3194+
dev->base_addr, dev->dev_addr, xid, dev->irq);
32003195
}
32013196

32023197
rtl8169_init_phy(dev, tp);

0 commit comments

Comments
 (0)