From: Vinod Koul Date: Wed, 14 Sep 2016 09:52:49 +0000 (+0530) Subject: dmaengine: sa11x0: use correct print specifiers for size_t X-Git-Tag: v5.15~12735^2~17^2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=762ff31dd4ec9d97e38bf3c1aa3c4bbd8e3e87ce;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/sa11x0-dma.c b/drivers/dma/sa11x0-dma.c index 4ebc00f..1adeb32 100644 --- a/drivers/dma/sa11x0-dma.c +++ b/drivers/dma/sa11x0-dma.c @@ -599,7 +599,7 @@ static struct dma_async_tx_descriptor *sa11x0_dma_prep_slave_sg( txd->size = size; txd->sglen = j; - dev_dbg(chan->device->dev, "vchan %p: txd %p: size %u nr %u\n", + dev_dbg(chan->device->dev, "vchan %p: txd %p: size %zu nr %u\n", &c->vc, &txd->vd, txd->size, txd->sglen); return vchan_tx_prep(&c->vc, &txd->vd, flags);