From: Vinod Koul Date: Wed, 14 Sep 2016 10:23:08 +0000 (+0530) Subject: dmaengine: mmp_tdma: use correct print specifiers for size_t X-Git-Tag: v4.14-rc1~2349^2~17^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e13b386963b337de98a0ff92d2eefc5dfef6edd;p=platform%2Fkernel%2Flinux-rpi.git dmaengine: mmp_tdma: use correct print specifiers for size_t 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 Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c index b3441f5..d7422b1 100644 --- a/drivers/dma/mmp_tdma.c +++ b/drivers/dma/mmp_tdma.c @@ -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; }