public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] dma/sh: fix rcar-dma.c printk format warnings
@ 2014-07-25 17:02 Randy Dunlap
  2014-07-26 15:49 ` Vinod Koul
  0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2014-07-25 17:02 UTC (permalink / raw)
  To: dmaengine@vger.kernel.org, Dan Williams; +Cc: LKML, Laurent Pinchart, dmaengine

From: Randy Dunlap <rdunlap@infradead.org>

Fix printk format warnings by using size_t modifiers ('z'):

../drivers/dma/sh/rcar-dmac.c:759:4: warning: format '%u' expects argument of type 'unsigned int', but argument 9 has type 'size_t' [-Wformat=]
../drivers/dma/sh/rcar-dmac.c:759:4: warning: format '%u' expects argument of type 'unsigned int', but argument 10 has type 'size_t' [-Wformat=]

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: dmaengine@vger.kernel.org
---
 drivers/dma/sh/rcar-dmac.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-next-20140725/drivers/dma/sh/rcar-dmac.c
===================================================================
--- linux-next-20140725.orig/drivers/dma/sh/rcar-dmac.c
+++ linux-next-20140725/drivers/dma/sh/rcar-dmac.c
@@ -757,7 +757,7 @@ rcar_dmac_chan_prep_sg(struct rcar_dmac_
 			hwdesc->size = size;
 
 			dev_dbg(chan->chan.device->dev,
-				"chan%u: hwdesc %p/%p sgl %u@%p, %u/%u %pad -> %pad\n",
+				"chan%u: hwdesc %p/%p sgl %u@%p, %zu/%zu %pad -> %pad\n",
 				chan->index, hwdesc, desc, i, sg, size, len,
 				&hwdesc->src_addr, &hwdesc->dst_addr);
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-07-28 12:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-25 17:02 [PATCH -next] dma/sh: fix rcar-dma.c printk format warnings Randy Dunlap
2014-07-26 15:49 ` Vinod Koul
2014-07-28 11:20   ` Laurent Pinchart
2014-07-28 11:31     ` Simon Horman
2014-07-28 12:08       ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox