summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2017-10-08 20:28:15 +0530
committerVinod Koul <vinod.koul@intel.com>2017-10-08 20:28:15 +0530
commit38502f232eafa3d3a1072ead3678090e11bdbecb (patch)
treef5e5a4006cf9ca77d2be9c44318d304b48b3270b /drivers/dma
parent4219ff33b26dbaa08c728ee4ad1a3a5aae300e1a (diff)
downloadlinux-38502f232eafa3d3a1072ead3678090e11bdbecb.tar.bz2
dmaengine: stm32: use %p format specfier for pointer
Pointer print was using explict cast and printing as %x which causes below warn on some arch's so print using %p format specfier. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/stm32-mdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/stm32-mdma.c b/drivers/dma/stm32-mdma.c
index a9cb341c8ee0..0db59a7e80e0 100644
--- a/drivers/dma/stm32-mdma.c
+++ b/drivers/dma/stm32-mdma.c
@@ -653,7 +653,7 @@ static int stm32_mdma_set_xfer_param(struct stm32_mdma_chan *chan,
static void stm32_mdma_dump_hwdesc(struct stm32_mdma_chan *chan,
struct stm32_mdma_hwdesc *hwdesc)
{
- dev_dbg(chan2dev(chan), "hwdesc: 0x%08x\n", (unsigned int)hwdesc);
+ dev_dbg(chan2dev(chan), "hwdesc: 0x%p\n", hwdesc);
dev_dbg(chan2dev(chan), "CTCR: 0x%08x\n", hwdesc->ctcr);
dev_dbg(chan2dev(chan), "CBNDTR: 0x%08x\n", hwdesc->cbndtr);
dev_dbg(chan2dev(chan), "CSAR: 0x%08x\n", hwdesc->csar);