[media] i2c/s5k4ecgx: fix printk format warning
authorRandy Dunlap <rdunlap@xenotime.net>
Tue, 16 Oct 2012 19:17:59 +0000 (16:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 28 Oct 2012 18:42:45 +0000 (16:42 -0200)
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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/i2c/s5k4ecgx.c

index 49c1b3abb4252c33fc8635f215ba080b640a73d1..2750de63427059ce3d286d1bc27905abeed95542 100644 (file)
@@ -343,7 +343,7 @@ static int s5k4ecgx_load_firmware(struct v4l2_subdev *sd)
        }
        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 */