powerpc/papr_scm: Update debug message
PATCH 1/1 powerpc/papr_scm: Update debug message
Resource struct p->res is assigned later. Avoid using %pR before the resource struct is assigned.
Signed-off-by Aneesh Kumar K.V <[email protected]>
--- arch/powerpc/platforms/pseries/papr_scm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
arch/powerpc/platforms/pseries/papr_scm.c +3 -2
@@ -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:
Signature · 1 line
2.23.0
Michael Ellerman
AppliedQuoted 4 lines · Aneesh Kumar K.V
Resource struct
p->resis assigned later. Avoid using %pR before the resource struct is assigned.Signed-off-by Aneesh Kumar K.V <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/0eb59382dff23910e7104c397b617fb0fede538e
cheers