All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: wm0010: Fix warning, use format %zu for type size_t
@ 2012-09-05 20:22 Emil Goode
  2012-09-05 22:29   ` Mark Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Emil Goode @ 2012-09-05 20:22 UTC (permalink / raw)
  To: kernel-janitors

Fix warning by using format specifier %zu for type size_t

Sparse warning:
sound/soc/codecs/wm0010.c:411:2: warning:
        format ‘%d’ expects argument of type ‘int’,
        but argument 4 has type ‘size_t’ [-Wformat]

Signed-off-by: Emil Goode <emilgoode@gmail.com>
---
 sound/soc/codecs/wm0010.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/wm0010.c b/sound/soc/codecs/wm0010.c
index 5f99148..8343d74 100644
--- a/sound/soc/codecs/wm0010.c
+++ b/sound/soc/codecs/wm0010.c
@@ -408,7 +408,7 @@ static int wm0010_boot(struct snd_soc_codec *codec)
 	wm0010->state = WM0010_BOOTROM;
 	spin_unlock_irqrestore(&wm0010->irq_lock, flags);
 
-	dev_dbg(codec->dev, "Downloading %d byte stage 2 loader\n", fw->size);
+	dev_dbg(codec->dev, "Downloading %zu byte stage 2 loader\n", fw->size);
 
 	/* Copy to local buffer first as vmalloc causes problems for dma */
 	img = kzalloc(fw->size, GFP_KERNEL);
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC: wm0010: Fix warning, use format %zu for type size_t
  2012-09-05 20:22 [PATCH] ASoC: wm0010: Fix warning, use format %zu for type size_t Emil Goode
@ 2012-09-05 22:29   ` Mark Brown
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Brown @ 2012-09-05 22:29 UTC (permalink / raw)
  To: Emil Goode; +Cc: alsa-devel, tiwai, patches, kernel-janitors, lrg

On Wed, Sep 05, 2012 at 10:22:24PM +0200, Emil Goode wrote:
> Fix warning by using format specifier %zu for type size_t
> 
> Sparse warning:
> sound/soc/codecs/wm0010.c:411:2: warning:
>         format ‘%d’ expects argument of type ‘int’,
>         but argument 4 has type ‘size_t’ [-Wformat]

Applied, thanks.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC: wm0010: Fix warning, use format %zu for type size_t
@ 2012-09-05 22:29   ` Mark Brown
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Brown @ 2012-09-05 22:29 UTC (permalink / raw)
  To: Emil Goode; +Cc: alsa-devel, tiwai, patches, kernel-janitors, lrg

On Wed, Sep 05, 2012 at 10:22:24PM +0200, Emil Goode wrote:
> Fix warning by using format specifier %zu for type size_t
> 
> Sparse warning:
> sound/soc/codecs/wm0010.c:411:2: warning:
>         format ‘%d’ expects argument of type ‘int’,
>         but argument 4 has type ‘size_t’ [-Wformat]

Applied, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-09-05 22:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-05 20:22 [PATCH] ASoC: wm0010: Fix warning, use format %zu for type size_t Emil Goode
2012-09-05 22:29 ` Mark Brown
2012-09-05 22:29   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.