Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1377420 > unrolled thread

[PATCH 1/1] ASoC: au1x: use correct format specifier

Started byHeinrich Schuchardt <xypron.glpk@gmx.de>
First post2016-04-13 02:00 +0200
Last post2016-04-13 02:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 1/1] ASoC: au1x: use correct format specifier Heinrich Schuchardt <xypron.glpk@gmx.de> - 2016-04-13 02:00 +0200

#1377420 — [PATCH 1/1] ASoC: au1x: use correct format specifier

FromHeinrich Schuchardt <xypron.glpk@gmx.de>
Date2016-04-13 02:00 +0200
Subject[PATCH 1/1] ASoC: au1x: use correct format specifier
Message-ID<rngnV-7PD-23@gated-at.bofh.it>
Documentation/printk-formats.txt has
unsigned long: use %lu or %lx
size_t:        use %zu or %zx

runtime->dma_bytes is of type size_t.
runtime->min_align is of type unsigned long.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 sound/soc/au1x/dbdma2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/au1x/dbdma2.c b/sound/soc/au1x/dbdma2.c
index 5741c0a..b5d1caa 100644
--- a/sound/soc/au1x/dbdma2.c
+++ b/sound/soc/au1x/dbdma2.c
@@ -206,8 +206,8 @@ static int au1xpsc_pcm_hw_params(struct snd_pcm_substream *substream,
 	stype = substream->stream;
 	pcd = to_dmadata(substream);
 
-	DBG("runtime->dma_area = 0x%08lx dma_addr_t = 0x%08lx dma_size = %d "
-	    "runtime->min_align %d\n",
+	DBG("runtime->dma_area = 0x%08lx dma_addr_t = 0x%08lx dma_size = %zu "
+	    "runtime->min_align %lu\n",
 		(unsigned long)runtime->dma_area,
 		(unsigned long)runtime->dma_addr, runtime->dma_bytes,
 		runtime->min_align);
-- 
2.1.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web