projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4219ff3
)
dmaengine: stm32: use %p format specfier for pointer
author
Vinod Koul
<vinod.koul@intel.com>
Sun, 8 Oct 2017 14:58:15 +0000
(20:28 +0530)
committer
Vinod Koul
<vinod.koul@intel.com>
Sun, 8 Oct 2017 14:58:15 +0000
(20:28 +0530)
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>
drivers/dma/stm32-mdma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/stm32-mdma.c
b/drivers/dma/stm32-mdma.c
index
a9cb341
..
0db59a7
100644
(file)
--- 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);