lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 11 May 2011 15:05:01 +0100
From:	Liam Girdwood <lrg@...mlogic.co.uk>
To:	Randy Dunlap <randy.dunlap@...cle.com>
Cc:	Mark Brown <broonie@...nsource.wolfsonmicro.com>,
	Stephen Rothwell <sfr@...b.auug.org.au>,
	linux-next@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH -next] ASoC: fix wm8958-dsp2 printk format warnings

On Sun, 2011-05-08 at 09:48 -0700, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@...cle.com>
> 
> Fix printk format warnings in wm8958-dsp2.c:
> 
> sound/soc/codecs/wm8958-dsp2.c:103: warning: format '%d' expects type 'int', but argument 4 has type 'size_t'
> sound/soc/codecs/wm8958-dsp2.c:111: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'
> sound/soc/codecs/wm8958-dsp2.c:144: warning: format '%d' expects type 'int', but argument 5 has type 'size_t'
> 
> Signed-off-by: Randy Dunlap <randy.dunlap@...cle.com>
> ---
>  sound/soc/codecs/wm8958-dsp2.c |    6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> --- linux-next-20110505.orig/sound/soc/codecs/wm8958-dsp2.c
> +++ linux-next-20110505/sound/soc/codecs/wm8958-dsp2.c
> @@ -99,7 +99,7 @@ static int wm8958_dsp2_fw(struct snd_soc
>  	len = fw->size - len;
>  	while (len) {
>  		if (len < 12) {
> -			dev_err(codec->dev, "%s short data block of %d\n",
> +			dev_err(codec->dev, "%s short data block of %zd\n",
>  				name, len);
>  			goto err;
>  		}
> @@ -107,7 +107,7 @@ static int wm8958_dsp2_fw(struct snd_soc
>  		memcpy(&data32, data + 4, sizeof(data32));
>  		block_len = be32_to_cpu(data32);
>  		if (block_len + 8 > len) {
> -			dev_err(codec->dev, "%d byte block longer than file\n",
> +			dev_err(codec->dev, "%zd byte block longer than file\n",
>  				block_len);
>  			goto err;
>  		}
> @@ -141,7 +141,7 @@ static int wm8958_dsp2_fw(struct snd_soc
>  		case WM_FW_BLOCK_I:
>  		case WM_FW_BLOCK_A:
>  		case WM_FW_BLOCK_C:
> -			dev_dbg(codec->dev, "%s: %d bytes of %x@%x\n", name,
> +			dev_dbg(codec->dev, "%s: %zd bytes of %x@%x\n", name,
>  				block_len, (data32 >> 24) & 0xff,
>  				data32 & 0xffffff);


Acked-by: Liam Girdwood <lrg@...com>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ