summaryrefslogtreecommitdiffstats
path: root/drivers/of/of_numa.c
diff options
context:
space:
mode:
authorRob Herring2018-08-28 03:00:19 +0200
committerRob Herring2018-09-07 18:04:41 +0200
commita613b26a50136ae90ab13943afe90bcbd34adb44 (patch)
treeae73468305d84211243721b857da21990ed11a8e /drivers/of/of_numa.c
parentof/unittest: add printf tests for node name (diff)
downloadkernel-qcow2-linux-a613b26a50136ae90ab13943afe90bcbd34adb44.tar.gz
kernel-qcow2-linux-a613b26a50136ae90ab13943afe90bcbd34adb44.tar.xz
kernel-qcow2-linux-a613b26a50136ae90ab13943afe90bcbd34adb44.zip
of: 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. Reviewed-by: Frank Rowand <frank.rowand@sony.com> Cc: Andrew Lunn <andrew@lunn.ch> Cc: Florian Fainelli <f.fainelli@gmail.com> Cc: netdev@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/of_numa.c')
-rw-r--r--drivers/of/of_numa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/of_numa.c b/drivers/of/of_numa.c
index 27d9b4bba535..67d3386195bf 100644
--- a/drivers/of/of_numa.c
+++ b/drivers/of/of_numa.c
@@ -163,8 +163,8 @@ int of_node_to_nid(struct device_node *device)
np = of_get_next_parent(np);
}
if (np && r)
- pr_warn("Invalid \"numa-node-id\" property in node %s\n",
- np->name);
+ pr_warn("Invalid \"numa-node-id\" property in node %pOFn\n",
+ np);
of_node_put(np);
/*