[5/7] drivers/media/video/cx18/cx18-alsa-pcm.c: fix printk warning

Message ID 201002022240.o12MeoSv018915@imap1.linux-foundation.org (mailing list archive)
State Superseded, archived
Headers

Commit Message

Andrew Morton Feb. 2, 2010, 10:40 p.m. UTC
  From: Andrew Morton <akpm@linux-foundation.org>

drivers/media/video/cx18/cx18-alsa-pcm.c: In function 'cx18_alsa_announce_pcm_data':
drivers/media/video/cx18/cx18-alsa-pcm.c:82: warning: format '%d' expects type 'int', but argument 5 has type 'size_t'

Cc: Andy Walls <awalls@radix.net>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/media/video/cx18/cx18-alsa-pcm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Andy Walls Feb. 4, 2010, 12:47 a.m. UTC | #1
On Tue, 2010-02-02 at 14:40 -0800, akpm@linux-foundation.org wrote:
> From: Andrew Morton <akpm@linux-foundation.org>
> 
> drivers/media/video/cx18/cx18-alsa-pcm.c: In function 'cx18_alsa_announce_pcm_data':
> drivers/media/video/cx18/cx18-alsa-pcm.c:82: warning: format '%d' expects type 'int', but argument 5 has type 'size_t'
> 
> Cc: Andy Walls <awalls@radix.net>

You beat me to it. :)

Acked-by: Andy Walls <awalls@radix.net>

> Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
> 
>  drivers/media/video/cx18/cx18-alsa-pcm.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff -puN drivers/media/video/cx18/cx18-alsa-pcm.c~drivers-media-video-cx18-cx18-alsa-pcmc-fix-printk-warning drivers/media/video/cx18/cx18-alsa-pcm.c
> --- a/drivers/media/video/cx18/cx18-alsa-pcm.c~drivers-media-video-cx18-cx18-alsa-pcmc-fix-printk-warning
> +++ a/drivers/media/video/cx18/cx18-alsa-pcm.c
> @@ -79,7 +79,7 @@ void cx18_alsa_announce_pcm_data(struct 
>  	int period_elapsed = 0;
>  	int length;
>  
> -	dprintk("cx18 alsa announce ptr=%p data=%p num_bytes=%d\n", cxsc,
> +	dprintk("cx18 alsa announce ptr=%p data=%p num_bytes=%zd\n", cxsc,
>  		pcm_data, num_bytes);
>  
>  	substream = cxsc->capture_pcm_substream;
> _
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
  

Patch

diff -puN drivers/media/video/cx18/cx18-alsa-pcm.c~drivers-media-video-cx18-cx18-alsa-pcmc-fix-printk-warning drivers/media/video/cx18/cx18-alsa-pcm.c
--- a/drivers/media/video/cx18/cx18-alsa-pcm.c~drivers-media-video-cx18-cx18-alsa-pcmc-fix-printk-warning
+++ a/drivers/media/video/cx18/cx18-alsa-pcm.c
@@ -79,7 +79,7 @@  void cx18_alsa_announce_pcm_data(struct 
 	int period_elapsed = 0;
 	int length;
 
-	dprintk("cx18 alsa announce ptr=%p data=%p num_bytes=%d\n", cxsc,
+	dprintk("cx18 alsa announce ptr=%p data=%p num_bytes=%zd\n", cxsc,
 		pcm_data, num_bytes);
 
 	substream = cxsc->capture_pcm_substream;