linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] media: fix i2c/s5k4ecgx printk format warning
       [not found] <20121016145856.cfddc9c898c31b1c686804d7@canb.auug.org.au>
@ 2012-10-16 20:17 ` Randy Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2012-10-16 20:17 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: linux-next, linux-kernel, linux-media, Mauro Carvalho Chehab,
	Sangwook Lee, Seok-Young Jang

From: Randy Dunlap <rdunlap@xenotime.net>

Fix printk format warning for size_t variable:

drivers/media/i2c/s5k4ecgx.c:346:2: warning: format '%d' expects type 'int', but argument 4 has type 'size_t'

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Sangwook Lee <sangwook.lee@linaro.org>
Cc: Seok-Young Jang <quartz.jang@samsung.com>
---
 drivers/media/i2c/s5k4ecgx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20121016.orig/drivers/media/i2c/s5k4ecgx.c
+++ linux-next-20121016/drivers/media/i2c/s5k4ecgx.c
@@ -343,7 +343,7 @@ static int s5k4ecgx_load_firmware(struct
 	}
 	regs_num = le32_to_cpu(get_unaligned_le32(fw->data));
 
-	v4l2_dbg(3, debug, sd, "FW: %s size %d register sets %d\n",
+	v4l2_dbg(3, debug, sd, "FW: %s size %zu register sets %d\n",
 		 S5K4ECGX_FIRMWARE, fw->size, regs_num);
 
 	regs_num++; /* Add header */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-16 20:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20121016145856.cfddc9c898c31b1c686804d7@canb.auug.org.au>
2012-10-16 20:17 ` [PATCH -next] media: fix i2c/s5k4ecgx printk format warning Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).