]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
EDAC, cpc925, ppc4xx: Convert to using %pOF instead of full_name
authorRob Herring <robh@kernel.org>
Tue, 18 Jul 2017 21:42:59 +0000 (16:42 -0500)
committerBorislav Petkov <bp@suse.de>
Wed, 19 Jul 2017 05:42:41 +0000 (07:42 +0200)
Now that we have a custom printf format specifier, convert users of
full_name to use %pOF instead. This is preparation to remove storing of
the full path string for each node.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: devicetree@vger.kernel.org
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170718214339.7774-19-robh@kernel.org
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/cpc925_edac.c
drivers/edac/ppc4xx_edac.c

index cba8ee14a0675223e75e3d00493e95205a86c3ef..2c98e020df05acb09f0aa5c412d2bbb62d9d29c7 100644 (file)
@@ -618,7 +618,7 @@ static u32 cpc925_cpu_mask_disabled(void)
                }
 
                if (reg == NULL || *reg > 2) {
-                       cpc925_printk(KERN_ERR, "Bad reg value at %s\n", cpunode->full_name);
+                       cpc925_printk(KERN_ERR, "Bad reg value at %pOF\n", cpunode);
                        continue;
                }
 
index 98d6dc7ef8e866e2ac1ad984db61787fa67d90df..fd3202c30f69f2ac621c0677f3dce2f3fa52c677 100644 (file)
@@ -1266,8 +1266,8 @@ static int ppc4xx_edac_probe(struct platform_device *op)
        memcheck = (mcopt1 & SDRAM_MCOPT1_MCHK_MASK);
 
        if (memcheck == SDRAM_MCOPT1_MCHK_NON) {
-               ppc4xx_edac_printk(KERN_INFO, "%s: No ECC memory detected or "
-                                  "ECC is disabled.\n", np->full_name);
+               ppc4xx_edac_printk(KERN_INFO, "%pOF: No ECC memory detected or "
+                                  "ECC is disabled.\n", np);
                status = -ENODEV;
                goto done;
        }
@@ -1286,9 +1286,9 @@ static int ppc4xx_edac_probe(struct platform_device *op)
        mci = edac_mc_alloc(ppc4xx_edac_instance, ARRAY_SIZE(layers), layers,
                            sizeof(struct ppc4xx_edac_pdata));
        if (mci == NULL) {
-               ppc4xx_edac_printk(KERN_ERR, "%s: "
+               ppc4xx_edac_printk(KERN_ERR, "%pOF: "
                                   "Failed to allocate EDAC MC instance!\n",
-                                  np->full_name);
+                                  np);
                status = -ENOMEM;
                goto done;
        }