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

dmaengine: sa11x0: use correct print specifiers for size_t

This driver when compiled on 64 bits gave warnings:

drivers/dma/sa11x0-dma.c:602:2: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 6 has type ‘size_t’ [-Wformat=]

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

Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

+1 -1
+1 -1
drivers/dma/sa11x0-dma.c
··· 599 599 txd->size = size; 600 600 txd->sglen = j; 601 601 602 - dev_dbg(chan->device->dev, "vchan %p: txd %p: size %u nr %u\n", 602 + dev_dbg(chan->device->dev, "vchan %p: txd %p: size %zu nr %u\n", 603 603 &c->vc, &txd->vd, txd->size, txd->sglen); 604 604 605 605 return vchan_tx_prep(&c->vc, &txd->vd, flags);