powerpc/pseries/pmem: Convert to %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.
pmem.c was recently added and missed the initial conversion.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
Rob Herring 2018-12-05 13:50:17 -06:00 committed by Michael Ellerman
parent 423e2f9445
commit 0d1223dd92

View File

@ -52,8 +52,8 @@ static ssize_t pmem_drc_add_node(u32 drc_index)
/* NB: The of reconfig notifier creates platform device from the node */ /* NB: The of reconfig notifier creates platform device from the node */
rc = dlpar_attach_node(dn, pmem_node); rc = dlpar_attach_node(dn, pmem_node);
if (rc) { if (rc) {
pr_err("Failed to attach node %s, rc: %d, drc index: %x\n", pr_err("Failed to attach node %pOF, rc: %d, drc index: %x\n",
dn->name, rc, drc_index); dn, rc, drc_index);
if (dlpar_release_drc(drc_index)) if (dlpar_release_drc(drc_index))
dlpar_free_cc_nodes(dn); dlpar_free_cc_nodes(dn);
@ -93,8 +93,8 @@ static ssize_t pmem_drc_remove_node(u32 drc_index)
rc = dlpar_release_drc(drc_index); rc = dlpar_release_drc(drc_index);
if (rc) { if (rc) {
pr_err("Failed to release drc (%x) for CPU %s, rc: %d\n", pr_err("Failed to release drc (%x) for CPU %pOFn, rc: %d\n",
drc_index, dn->name, rc); drc_index, dn, rc);
dlpar_attach_node(dn, pmem_node); dlpar_attach_node(dn, pmem_node);
return rc; return rc;
} }