]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
imx-drm: ipuv3-plane: Use %pad to print 'dma_addr_t'
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 26 Feb 2014 23:53:43 +0000 (20:53 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2014 22:57:43 +0000 (14:57 -0800)
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 <dan.carpenter@oracle.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/imx-drm/ipuv3-plane.c

index 34b642a12f8bb2cb6163b1fa05eeca184aef135b..b0c9b6ce48540471760a824126c4e9e709e8af8e 100644 (file)
@@ -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]);