From: Fabio Estevam Date: Wed, 26 Feb 2014 23:53:43 +0000 (-0300) Subject: imx-drm: ipuv3-plane: Use %pad to print 'dma_addr_t' X-Git-Tag: firefly_0821_release~176^2~4193^2~820 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=18589738eeee7d561058e2e30b154ea97c91e3e9;p=firefly-linux-kernel-4.4.55.git imx-drm: ipuv3-plane: Use %pad to print 'dma_addr_t' Fix the following static checker warning: drivers/staging/imx-drm/ipuv3-plane.c:75:2: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'dma_addr_t' [-Wformat] Use %pad to print 'dma_addr_t'. Reported-by: Dan Carpenter Signed-off-by: Fabio Estevam Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/imx-drm/ipuv3-plane.c b/drivers/staging/imx-drm/ipuv3-plane.c index 34b642a12f8b..b0c9b6ce4854 100644 --- a/drivers/staging/imx-drm/ipuv3-plane.c +++ b/drivers/staging/imx-drm/ipuv3-plane.c @@ -72,8 +72,8 @@ int ipu_plane_set_base(struct ipu_plane *ipu_plane, struct drm_framebuffer *fb, return -EFAULT; } - dev_dbg(ipu_plane->base.dev->dev, "phys = 0x%x, x = %d, y = %d", - cma_obj->paddr, x, y); + dev_dbg(ipu_plane->base.dev->dev, "phys = %pad, x = %d, y = %d", + &cma_obj->paddr, x, y); cpmem = ipu_get_cpmem(ipu_plane->ipu_ch); ipu_cpmem_set_stride(cpmem, fb->pitches[0]);