Skip to contentSkip to conversation

drivers/net/atl1c/atl1c_main.c: use %pM to show MAC address

PATCH Applied H Hartley Sweeten 2 participants 2 messages Jan 5, 2010 – Jan 7, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/net/atl1c/atl1c_main.c: use %pM to show MAC address

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

The only difference in the output is that the MAC address is shown in the usual colon-separated hex notation.

---

Repost due to merge issues.

drivers/net/atl1c/atl1c_main.c +2 -5
index 2f4be59..77cde85 100644
@@ -2596,11 +2596,8 @@ static int __devinit atl1c_probe(struct pci_dev *pdev,
 	memcpy(netdev->dev_addr, adapter->hw.mac_addr, netdev->addr_len);
 	memcpy(netdev->perm_addr, adapter->hw.mac_addr, netdev->addr_len);
 	if (netif_msg_probe(adapter))
-		dev_dbg(&pdev->dev,
-			"mac address : %02x-%02x-%02x-%02x-%02x-%02x\n",
-			adapter->hw.mac_addr[0], adapter->hw.mac_addr[1],
-			adapter->hw.mac_addr[2], adapter->hw.mac_addr[3],
-			adapter->hw.mac_addr[4], adapter->hw.mac_addr[5]);
+		dev_dbg(&pdev->dev, "mac address : %pM\n",
+			adapter->hw.mac_addr);
 
 	atl1c_hw_set_mac_addr(&adapter->hw);
 	INIT_WORK(&adapter->common_task, atl1c_common_task);
maintainer Applied
#1 lore raw

From: H Hartley Sweeten <[email protected]>
Date: Tue, 5 Jan 2010 09:54:01 -0700

Quoted 6 lines

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

The only difference in the output is that the MAC address is shown in the usual colon-separated hex notation.

Applied.