linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Liam Girdwood <lrg@slimlogic.co.uk>
To: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>,
	Stephen Rothwell <sfr@canb.auug.org.au>,
	linux-next@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH -next] ASoC: fix wm8958-dsp2 printk format warnings
Date: Wed, 11 May 2011 15:05:01 +0100	[thread overview]
Message-ID: <1305122701.3277.29.camel@odin> (raw)
In-Reply-To: <20110508094824.b6952ae6.randy.dunlap@oracle.com>

On Sun, 2011-05-08 at 09:48 -0700, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.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@oracle.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@ti.com>

  reply	other threads:[~2011-05-11 14:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-05  3:49 linux-next: Tree for May 5 Stephen Rothwell
2011-05-06 23:13 ` [PATCH -next] soc: fix wm8958-dsp2 printk format warnings Randy Dunlap
2011-05-08 14:01   ` Mark Brown
2011-05-08 15:38     ` Randy Dunlap
2011-05-08 16:06       ` Mark Brown
2011-05-08 16:48         ` [PATCH -next] ASoC: " Randy Dunlap
2011-05-11 14:05           ` Liam Girdwood [this message]
2011-05-11 16:16           ` Mark Brown
2011-05-07  3:24 ` linux-next: Tree for May 5 Jean-Christophe PLAGNIOL-VILLARD
2011-05-09  5:54   ` Stephen Rothwell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1305122701.3277.29.camel@odin \
    --to=lrg@slimlogic.co.uk \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=randy.dunlap@oracle.com \
    --cc=sfr@canb.auug.org.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).