OSDN Git Service

misc: Convert to using %pOFn instead of device_node.name
authorRob Herring <robh@kernel.org>
Tue, 28 Aug 2018 01:52:32 +0000 (20:52 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Sep 2018 13:25:57 +0000 (15:25 +0200)
In preparation to remove the node name pointer from struct device_node,
convert printf users to use the %pOFn format specifier.

Cc: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/cxl/flash.c

index 4391789..4d6836f 100644 (file)
@@ -92,8 +92,8 @@ static int update_property(struct device_node *dn, const char *name,
 
        val = (u32 *)new_prop->value;
        rc = cxl_update_properties(dn, new_prop);
-       pr_devel("%s: update property (%s, length: %i, value: %#x)\n",
-                 dn->name, name, vd, be32_to_cpu(*val));
+       pr_devel("%pOFn: update property (%s, length: %i, value: %#x)\n",
+                 dn, name, vd, be32_to_cpu(*val));
 
        if (rc) {
                kfree(new_prop->name);