* [PATCH] Fix s5c73m3-core.c compiler warning
@ 2013-04-08 9:10 Hans Verkuil
2013-04-08 13:20 ` Sylwester Nawrocki
0 siblings, 1 reply; 2+ messages in thread
From: Hans Verkuil @ 2013-04-08 9:10 UTC (permalink / raw)
To: linux-media, Sylwester Nawrocki
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>
Regards,
Hans
diff --git a/drivers/media/i2c/s5c73m3/s5c73m3-core.c b/drivers/media/i2c/s5c73m3/s5c73m3-core.c
index 5dbb65e..b353c50 100644
--- a/drivers/media/i2c/s5c73m3/s5c73m3-core.c
+++ b/drivers/media/i2c/s5c73m3/s5c73m3-core.c
@@ -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);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix s5c73m3-core.c compiler warning
2013-04-08 9:10 [PATCH] Fix s5c73m3-core.c compiler warning Hans Verkuil
@ 2013-04-08 13:20 ` Sylwester Nawrocki
0 siblings, 0 replies; 2+ messages in thread
From: Sylwester Nawrocki @ 2013-04-08 13:20 UTC (permalink / raw)
To: Hans Verkuil; +Cc: linux-media
On 04/08/2013 11:10 AM, Hans Verkuil wrote:
> 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>
Thanks Hans, I somehow overlooked this in the daily build logs.
Kamil will include this patch in his pull request.
> Regards,
>
> Hans
>
> diff --git a/drivers/media/i2c/s5c73m3/s5c73m3-core.c b/drivers/media/i2c/s5c73m3/s5c73m3-core.c
> index 5dbb65e..b353c50 100644
> --- a/drivers/media/i2c/s5c73m3/s5c73m3-core.c
> +++ b/drivers/media/i2c/s5c73m3/s5c73m3-core.c
> @@ -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);
Regards,
Sylwester
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-08 13:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-08 9:10 [PATCH] Fix s5c73m3-core.c compiler warning Hans Verkuil
2013-04-08 13:20 ` Sylwester Nawrocki
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).