Skip to contentSkip to conversation

ASoC: wm0010: Fix warning, use format %zu for type size_t

PATCH Applied Emil Goode 2 participants 2 messages Sep 5, 2012

Subsystems (4)
lore
Share & tools
lore

Emil Goode

author
#0 lore raw

PATCH 1/1 ASoC: wm0010: Fix warning, use format %zu for type size_t

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]

---
 sound/soc/codecs/wm0010.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/wm0010.c +1 -1
index 5f99148..8343d74 100644
@@ -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);
Signature · 1 line
1.7.10.4
Applied
#1 lore raw
Quoted 6 lines · Emil Goode

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.