Skip to content

Commit

Permalink
dmaengine: sa11x0: use correct print specifiers for size_t
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
  • Loading branch information
Vinod Koul committed Sep 26, 2016
1 parent 872b4af commit 762ff31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/sa11x0-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 762ff31

Please sign in to comment.