Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <zhangfei.gao@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

+1 -1
+1 -1
drivers/dma/mmp_tdma.c
··· 433 433 434 434 if (period_len > TDMA_MAX_XFER_BYTES) { 435 435 dev_err(tdmac->dev, 436 - "maximum period size exceeded: %d > %d\n", 436 + "maximum period size exceeded: %zu > %d\n", 437 437 period_len, TDMA_MAX_XFER_BYTES); 438 438 goto err_out; 439 439 }