[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <507DC0F7.207@xenotime.net>
Date: Tue, 16 Oct 2012 13:17:59 -0700
From: Randy Dunlap <rdunlap@...otime.net>
To: Stephen Rothwell <sfr@...b.auug.org.au>
CC: linux-next@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-media <linux-media@...r.kernel.org>,
Mauro Carvalho Chehab <mchehab@...hat.com>,
Sangwook Lee <sangwook.lee@...aro.org>,
Seok-Young Jang <quartz.jang@...sung.com>
Subject: [PATCH -next] media: fix i2c/s5k4ecgx printk format warning
From: Randy Dunlap <rdunlap@...otime.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@...otime.net>
Cc: Sangwook Lee <sangwook.lee@...aro.org>
Cc: Seok-Young Jang <quartz.jang@...sung.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 */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists