Skip to content

Commit

Permalink
[media] i2c/s5k4ecgx: fix printk format warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Mauro Carvalho Chehab committed Oct 28, 2012
1 parent 7c72e19 commit 107376b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/i2c/s5k4ecgx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 107376b

Please sign in to comment.