diff options
author | Benjamin Gaignard <benjamin.gaignard@linaro.org> | 2018-07-06 15:02:20 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2018-07-09 23:01:57 +0530 |
commit | 90ec93cb6bca598357d001dc9ea3e5bcb2465303 (patch) | |
tree | 15dcfea557957457acb8f82f580245f7f916d091 /drivers/dma/stm32-dma.c | |
parent | e6a785116df09f07c8d185fb18211d2bbacb047b (diff) | |
download | linux-90ec93cb6bca598357d001dc9ea3e5bcb2465303.tar.gz linux-90ec93cb6bca598357d001dc9ea3e5bcb2465303.tar.bz2 linux-90ec93cb6bca598357d001dc9ea3e5bcb2465303.zip |
dmaengine: stm32: replace "%p" with "%pK"
The format specifier "%p" can leak kernel addresses.
Use "%pK" instead.
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/stm32-dma.c')
-rw-r--r-- | drivers/dma/stm32-dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/stm32-dma.c b/drivers/dma/stm32-dma.c index 8c5807362a25..379e8d534e61 100644 --- a/drivers/dma/stm32-dma.c +++ b/drivers/dma/stm32-dma.c @@ -594,7 +594,7 @@ static void stm32_dma_start_transfer(struct stm32_dma_chan *chan) chan->busy = true; - dev_dbg(chan2dev(chan), "vchan %p: started\n", &chan->vchan); + dev_dbg(chan2dev(chan), "vchan %pK: started\n", &chan->vchan); } static void stm32_dma_configure_next_sg(struct stm32_dma_chan *chan) @@ -693,7 +693,7 @@ static void stm32_dma_issue_pending(struct dma_chan *c) spin_lock_irqsave(&chan->vchan.lock, flags); if (vchan_issue_pending(&chan->vchan) && !chan->desc && !chan->busy) { - dev_dbg(chan2dev(chan), "vchan %p: issued\n", &chan->vchan); + dev_dbg(chan2dev(chan), "vchan %pK: issued\n", &chan->vchan); stm32_dma_start_transfer(chan); } |