]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
dmaengine: mmp_tdma: use correct print specifiers for size_t
authorVinod Koul <vinod.koul@intel.com>
Wed, 14 Sep 2016 10:23:08 +0000 (15:53 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 26 Sep 2016 16:59:47 +0000 (22:29 +0530)
This driver warns:

drivers/dma/mmp_tdma.c: In function 'mmp_tdma_prep_dma_cyclic':
drivers/dma/mmp_tdma.c:437:5: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=]

We should use %zu to print 'size_t' values.

Acked-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mmp_tdma.c

index b3441f57a3640d74f268637a7f9a4941d5d7daca..d7422b1bf406ba5684e93ee1dac3a0a8b0f3f940 100644 (file)
@@ -433,7 +433,7 @@ static struct dma_async_tx_descriptor *mmp_tdma_prep_dma_cyclic(
 
        if (period_len > TDMA_MAX_XFER_BYTES) {
                dev_err(tdmac->dev,
-                               "maximum period size exceeded: %d > %d\n",
+                               "maximum period size exceeded: %zu > %d\n",
                                period_len, TDMA_MAX_XFER_BYTES);
                goto err_out;
        }