]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
powerpc/papr_scm: Update debug message
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Mon, 2 Dec 2019 06:38:55 +0000 (12:08 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 6 Jan 2020 05:25:28 +0000 (16:25 +1100)
Resource struct p->res is assigned later. Avoid using %pR before the resource
struct is assigned.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191202063855.154321-1-aneesh.kumar@linux.ibm.com
arch/powerpc/platforms/pseries/papr_scm.c

index c2ef320ba1bf230286191d97b75e0404d7768e43..cdd316c6cef38bdc4f4a8a1471472fab2eb0bec5 100644 (file)
@@ -69,7 +69,8 @@ static int drc_pmem_bind(struct papr_scm_priv *p)
                return rc;
 
        p->bound_addr = saved;
-       dev_dbg(&p->pdev->dev, "bound drc 0x%x to %pR\n", p->drc_index, &p->res);
+       dev_dbg(&p->pdev->dev, "bound drc 0x%x to 0x%lx\n",
+               p->drc_index, (unsigned long)saved);
        return rc;
 }
 
@@ -133,7 +134,7 @@ static int drc_pmem_query_n_bind(struct papr_scm_priv *p)
                goto err_out;
 
        p->bound_addr = start_addr;
-       dev_dbg(&p->pdev->dev, "bound drc 0x%x to %pR\n", p->drc_index, &p->res);
+       dev_dbg(&p->pdev->dev, "bound drc 0x%x to 0x%lx\n", p->drc_index, start_addr);
        return rc;
 
 err_out: