alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] ASoC: fix wm2200.c printk format warnings
       [not found] <20121019135419.f996aed8ed85ee50a782a649@canb.auug.org.au>
@ 2012-10-19 23:13 ` Randy Dunlap
  2012-10-22 13:39   ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2012-10-19 23:13 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: linux-next, Liam Girdwood, Mark Brown,
	moderated for non-subscribers

From: Randy Dunlap <rdunlap@xenotime.net>

Fix wm2200.c printk format warnings (seen on x86_64):

sound/soc/codecs/wm2200.c:1027:4: warning: format '%d' expects type 'int', but argument 4 has type 'size_t'
sound/soc/codecs/wm2200.c:1139:5: warning: format '%d' expects type 'int', but argument 5 has type 'long unsigned int'
sound/soc/codecs/wm2200.c:1181:2: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
sound/soc/codecs/wm2200.c:1201:5: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'long unsigned int'
sound/soc/codecs/wm2200.c:1264:4: warning: format '%d' expects type 'int', but argument 4 has type 'size_t'
sound/soc/codecs/wm2200.c:1328:5: warning: format '%d' expects type 'int', but argument 5 has type 'long unsigned int'

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc:	Liam Girdwood <lrg@ti.com>
Cc:	Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc:	alsa-devel@alsa-project.org (moderated for non-subscribers)
---
 sound/soc/codecs/wm2200.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

--- linux-next-20121019.orig/sound/soc/codecs/wm2200.c
+++ linux-next-20121019/sound/soc/codecs/wm2200.c
@@ -1023,7 +1023,7 @@ static int wm2200_dsp_load(struct snd_so
 
 	pos = sizeof(*header) + sizeof(*adsp1_sizes) + sizeof(*footer);
 	if (pos >= firmware->size) {
-		dev_err(codec->dev, "%s: file too short, %d bytes\n",
+		dev_err(codec->dev, "%s: file too short, %zu bytes\n",
 			file, firmware->size);
 		return -EINVAL;
 	}
@@ -1135,7 +1135,7 @@ static int wm2200_dsp_load(struct snd_so
 	}
 
 	if (pos > firmware->size)
-		dev_warn(codec->dev, "%s.%d: %d bytes at end of file\n",
+		dev_warn(codec->dev, "%s.%d: %zu bytes at end of file\n",
 			 file, regions, pos - firmware->size);
 
 out:
@@ -1178,7 +1178,7 @@ static int wm2200_setup_algs(struct snd_
 	}
 
 	algs = be32_to_cpu(id.algs);
-	dev_info(codec->dev, "Firmware: %x v%d.%d.%d, %d algorithms\n",
+	dev_info(codec->dev, "Firmware: %x v%d.%d.%d, %zu algorithms\n",
 		 be32_to_cpu(id.fw.id),
 		 (be32_to_cpu(id.fw.ver) & 0xff000) >> 16,
 		 (be32_to_cpu(id.fw.ver) & 0xff00) >> 8,
@@ -1196,7 +1196,7 @@ static int wm2200_setup_algs(struct snd_
 	}
 
 	if (be32_to_cpu(val) != 0xbedead)
-		dev_warn(codec->dev, "Algorithm list end %x 0x%x != 0xbeadead\n",
+		dev_warn(codec->dev, "Algorithm list end %zx 0x%x != 0xbeadead\n",
 			 (sizeof(id) + (algs * sizeof(*alg))) / 2,
 			 be32_to_cpu(val));
 
@@ -1260,7 +1260,7 @@ static int wm2200_load_coeff(struct snd_
 	}
 
 	if (sizeof(*hdr) >= firmware->size) {
-		dev_err(codec->dev, "%s: file too short, %d bytes\n",
+		dev_err(codec->dev, "%s: file too short, %zu bytes\n",
 			file, firmware->size);
 		return -EINVAL;
 	}
@@ -1324,7 +1324,7 @@ static int wm2200_load_coeff(struct snd_
 	}
 
 	if (pos > firmware->size)
-		dev_warn(codec->dev, "%s.%d: %d bytes at end of file\n",
+		dev_warn(codec->dev, "%s.%d: %zu bytes at end of file\n",
 			 file, blocks, pos - firmware->size);
 
 	return 0;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] ASoC: fix wm2200.c printk format warnings
  2012-10-19 23:13 ` [PATCH -next] ASoC: fix wm2200.c printk format warnings Randy Dunlap
@ 2012-10-22 13:39   ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2012-10-22 13:39 UTC (permalink / raw)
  To: Randy Dunlap
  Cc: Stephen Rothwell, linux-next, Liam Girdwood,
	moderated for non-subscribers

[-- Attachment #1: Type: text/plain, Size: 390 bytes --]

On Fri, Oct 19, 2012 at 04:13:07PM -0700, Randy Dunlap wrote:
> From: Randy Dunlap <rdunlap@xenotime.net>
> 
> Fix wm2200.c printk format warnings (seen on x86_64):

Applied but it is very depressing that I need to *again* remind you to
pay attention to where you're sending patches:

 - *ALWAYS* send patches to the maintainers.
 - Don't send patches to irrelevant people/lists.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-22 13:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20121019135419.f996aed8ed85ee50a782a649@canb.auug.org.au>
2012-10-19 23:13 ` [PATCH -next] ASoC: fix wm2200.c printk format warnings Randy Dunlap
2012-10-22 13:39   ` Mark Brown

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).