Skip to content

Commit

Permalink
ASoC: wm0010: Fix warning, use format %zu for type size_t
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Emil Goode authored and Mark Brown committed Sep 5, 2012
1 parent 4f3ad79 commit 5d86e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm0010.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5d86e25

Please sign in to comment.