Skip to content

Commit

Permalink
[media] s5c73m3: Fix s5c73m3-core.c compiler warning
Browse files Browse the repository at this point in the history
Fix for this compiler warning:
CC [M]  drivers/media/i2c/s5c73m3/s5c73m3-core.o
drivers/media/i2c/s5c73m3/s5c73m3-core.c: In function ‘s5c73m3_load_fw’:
drivers/media/i2c/s5c73m3/s5c73m3-core.c:360:2: warning: format ‘%d’ expects
argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Apr 12, 2013
1 parent a34026e commit abd5085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/i2c/s5c73m3/s5c73m3-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ static int s5c73m3_load_fw(struct v4l2_subdev *sd)
return -EINVAL;
}

v4l2_info(sd, "Loading firmware (%s, %d B)\n", fw_name, fw->size);
v4l2_info(sd, "Loading firmware (%s, %zu B)\n", fw_name, fw->size);

ret = s5c73m3_spi_write(state, fw->data, fw->size, 64);

Expand Down

0 comments on commit abd5085

Please sign in to comment.