From: Emil Goode Date: Wed, 5 Sep 2012 20:22:24 +0000 (+0200) Subject: ASoC: wm0010: Fix warning, use format %zu for type size_t X-Git-Tag: accepted/tizen/common/20141203.182822~3352^2~52^2~133 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d86e25c70407cd97a5aa8f39cc3be390bcab116;p=platform%2Fkernel%2Flinux-arm64.git 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] Signed-off-by: Emil Goode Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm0010.c b/sound/soc/codecs/wm0010.c index 0274f04..f8d6c31 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);