Skip to contentSkip to conversation

net: phy: Convert to using %pOFn instead of device_node.name

PATCH RESEND Applied Rob Herring 2 participants 2 messages Sep 28, 2018 – Oct 2, 2018

Subsystems (3)

v1 of 3 Applied Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 net: phy: Convert to using %pOFn instead of device_node.name

In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier.

---
David, Resending because you superseded this one for some reason. It shouldn't be. Perhaps because the subject was similar to others?

Rob

 drivers/net/phy/mdio-thunder.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/phy/mdio-thunder.c +2 -2
index 564616968cad..1546f6398831 100644
@@ -73,8 +73,8 @@ static int thunder_mdiobus_pci_probe(struct pci_dev *pdev,
 		err = of_address_to_resource(node, 0, &r);
 		if (err) {
 			dev_err(&pdev->dev,
-				"Couldn't translate address for \"%s\"\n",
-				node->name);
+				"Couldn't translate address for \"%pOFn\"\n",
+				node);
 			break;
 		}
 
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw

From: Rob Herring <[email protected]>
Date: Fri, 28 Sep 2018 17:04:59 -0500

Quoted 11 lines

In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier.

---
David, Resending because you superseded this one for some reason. It shouldn't be. Perhaps because the subject was similar to others?

Applied, thanks.