]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[media] c8sectpfe: Use %pad to print 'dma_addr_t'
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 18 Aug 2015 13:23:05 +0000 (10:23 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 3 Sep 2015 16:44:29 +0000 (13:44 -0300)
Use %pad to print 'dma_addr_t' in order to fix the following
build warning:

drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c:588:2: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'dma_addr_t' [-Wformat=]

Reported-by: Olof's autobuilder <build@lixom.net>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c

index 1586a1e6836d9f2e092ff8e830b9358c7b1dfb85..486aef50d99b23e4753cbd055221cd2dbb4f6097 100644 (file)
@@ -585,9 +585,9 @@ static int configure_memdma_and_inputblock(struct c8sectpfei *fei,
        writel(tsin->pid_buffer_busaddr,
                fei->io + PIDF_BASE(tsin->tsin_id));
 
-       dev_info(fei->dev, "chan=%d PIDF_BASE=0x%x pid_bus_addr=0x%x\n",
+       dev_info(fei->dev, "chan=%d PIDF_BASE=0x%x pid_bus_addr=%pad\n",
                tsin->tsin_id, readl(fei->io + PIDF_BASE(tsin->tsin_id)),
-               tsin->pid_buffer_busaddr);
+               &tsin->pid_buffer_busaddr);
 
        /* Configure and enable HW PID filtering */