ASoC: rsnd: Fix warnings due to improper printk formats
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 12 May 2014 23:10:20 +0000 (01:10 +0200)
committerMark Brown <broonie@linaro.org>
Thu, 15 May 2014 10:13:17 +0000 (11:13 +0100)
Use the %pap printk specifier to print resource_size_t variables. This
fixes warnings on platforms where resource_size_t has a different size
than int.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/sh/rcar/gen.c

index a135d4c9d0803c512a7ffd45bf651a862a2719cc..a1583b57bf8d2f7230bd8d293e2566cfb94c5828 100644 (file)
@@ -263,13 +263,13 @@ static int rsnd_gen2_probe(struct platform_device *pdev,
                return ret;
 
        dev_dbg(dev, "Gen2 device probed\n");
-       dev_dbg(dev, "SCU  : %08x => %p\n", scu_res->start,
+       dev_dbg(dev, "SCU  : %pap => %p\n", &scu_res->start,
                gen->base[RSND_GEN2_SCU]);
-       dev_dbg(dev, "ADG  : %08x => %p\n", adg_res->start,
+       dev_dbg(dev, "ADG  : %pap => %p\n", &adg_res->start,
                gen->base[RSND_GEN2_ADG]);
-       dev_dbg(dev, "SSIU : %08x => %p\n", ssiu_res->start,
+       dev_dbg(dev, "SSIU : %pap => %p\n", &ssiu_res->start,
                gen->base[RSND_GEN2_SSIU]);
-       dev_dbg(dev, "SSI  : %08x => %p\n", ssi_res->start,
+       dev_dbg(dev, "SSI  : %pap => %p\n", &ssi_res->start,
                gen->base[RSND_GEN2_SSI]);
 
        return 0;
@@ -356,11 +356,11 @@ static int rsnd_gen1_probe(struct platform_device *pdev,
                return ret;
 
        dev_dbg(dev, "Gen1 device probed\n");
-       dev_dbg(dev, "SRU : %08x => %p\n",      sru_res->start,
+       dev_dbg(dev, "SRU : %pap => %p\n",      &sru_res->start,
                                                gen->base[RSND_GEN1_SRU]);
-       dev_dbg(dev, "ADG : %08x => %p\n",      adg_res->start,
+       dev_dbg(dev, "ADG : %pap => %p\n",      &adg_res->start,
                                                gen->base[RSND_GEN1_ADG]);
-       dev_dbg(dev, "SSI : %08x => %p\n",      ssi_res->start,
+       dev_dbg(dev, "SSI : %pap => %p\n",      &ssi_res->start,
                                                gen->base[RSND_GEN1_SSI]);
 
        return 0;