dmaengine: k3dma: use correct format string for debug output
authorArnd Bergmann <arnd@arndb.de>
Tue, 6 Sep 2016 13:17:49 +0000 (15:17 +0200)
committerVinod Koul <vinod.koul@intel.com>
Wed, 7 Sep 2016 08:08:43 +0000 (13:38 +0530)
commit5f03c39978e3437398d4777215c5818e62118b2c
tree9fab3a50eec63c59eb6fa86e95221f1287e3b640
parente39a2329cfb09072bbab3c1310efc9ff6b7c3aa9
dmaengine: k3dma: use correct format string for debug output

The newly added k3_dma_prep_dma_cyclic function has some debug output
that uses incorrect typecasts, some of which cause a warning like:

drivers/dma/k3dma.c: In function 'k3_dma_prep_dma_cyclic':
drivers/dma/k3dma.c:589:671: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]

In general, we have to print 'dma_addr_t' values using special
'%pad' format to get the correct behavior on kernels that have
a 64-bit dma_addr_t type but 32-bit pointers.

Similarly, printing size_t values should be done using the %z
modifier to get the correct behavior on 64-bit kernels.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: a7e08fa6cc78 ("k3dma: Add cyclic mode for audio")
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/k3dma.c
This page took 0.027085 seconds and 5 git commands to generate.