Skip to contentSkip to conversation

amso1100/c2_provider.c: use %pM to show MAC address

PATCH New H Hartley Sweeten 1 participant 1 message Jan 5, 2010 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 amso1100/c2_provider.c: use %pM to show MAC address

Use the %pM kernel extension to display the MAC address.

Cc Tom Tucker <[email protected]>
Cc David S. Miller <[email protected]>

---

Repost due to merge issues.

drivers/infiniband/hw/amso1100/c2_provider.c +1 -4
index ad723bd..712314a 100644
@@ -760,10 +760,7 @@ static struct net_device *c2_pseudo_netdev_init(struct c2_dev *c2dev)
 	memcpy_fromio(netdev->dev_addr, c2dev->kva + C2_REGS_RDMA_ENADDR, 6);
 
 	/* Print out the MAC address */
-	pr_debug("%s: MAC %02X:%02X:%02X:%02X:%02X:%02X\n",
-		netdev->name,
-		netdev->dev_addr[0], netdev->dev_addr[1], netdev->dev_addr[2],
-		netdev->dev_addr[3], netdev->dev_addr[4], netdev->dev_addr[5]);
+	pr_debug("%s: MAC %pM\n", netdev->name, netdev->dev_addr);
 
 #if 0
 	/* Disable network packets */