ASoC: rsnd: Use %pad to print dma_addr_t in rsnd_dmapp_init()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 10 Mar 2015 10:48:05 +0000 (11:48 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 11 Mar 2015 11:56:42 +0000 (11:56 +0000)
sound/soc/sh/rcar/dma.c: In function 'rsnd_dmapp_init':
sound/soc/sh/rcar/dma.c:341:2: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'dma_addr_t' [-Wformat=]
  dev_dbg(dev, "id/src/dst/chcr = %d/%x/%x/%08x\n",
  ^
sound/soc/sh/rcar/dma.c:341:2: warning: format '%x' expects argument of type 'unsigned int', but argument 6 has type 'dma_addr_t' [-Wformat=]

Fixes: 288f392e729dd4d3 ("ASoC: rsnd: add Audio DMAC peri peri support rework")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/dma.c

index 92fd55044ee6b4948e185408cb8ce82d082767dd..2b73df84a76904dc196a265c9266a58ac56a69e3 100644 (file)
@@ -338,8 +338,8 @@ static int rsnd_dmapp_init(struct rsnd_priv *priv, struct rsnd_dma *dma, int id,
 
        rsnd_dmapp_stop(dma);
 
-       dev_dbg(dev, "id/src/dst/chcr = %d/%x/%x/%08x\n",
-               dmapp->dmapp_id, dma->src_addr, dma->dst_addr, dmapp->chcr);
+       dev_dbg(dev, "id/src/dst/chcr = %d/%pad/%pad/%08x\n",
+               dmapp->dmapp_id, &dma->src_addr, &dma->dst_addr, dmapp->chcr);
 
        return 0;
 }