dmaengine: loongson: Remove the %p pointer output
Subsystems (2)
PATCH v2 1/1 dmaengine: loongson: Remove the %p pointer output
The %pK format modifier was meant for /proc kind of output, not general printk output. Since commit ad67b74d2469d ("printk: hash addresses printed with %p") pointers are hashed by default and the behaviour can be controller by `hash_pointers' boot argument.
The policy on %p is to not introduce new ones. This is the only pointer output in the driver.
Remove the pointer formating from debug output.
---
v1…v2: https://lore.kernel.org/all/[email protected]/
- Update subject line (it is removed, not replaced).
drivers/dma/loongson/loongson2-apb-cmc-dma.c | 1 - 1 file changed, 1 deletion(-)
drivers/dma/loongson/loongson2-apb-cmc-dma.c +0 -1
@@ -337,7 +337,6 @@ static void loongson2_cmc_dma_issue_pending(struct dma_chan *chan)guard (spinlock_irqsave)(&lchan->vchan.lock);if (vchan_issue_pending (&lchan->vchan) && !lchan->desc) { -dev_dbg (chan2dev (lchan),"vchan %pK: issued\n" , &lchan->vchan);loongson2_cmc_dma_start_transfer (lchan); } }
Signature · 1 line
2.55.0
Quoted 7 lines · Sebastian Andrzej Siewior
The %pK format modifier was meant for /proc kind of output, not general printk output. Since commit
ad67b74d2469d("printk: hash addresses printed with %p") pointers are hashed by default and the behaviour can be controller by `hash_pointers' boot argument.
The policy on %p is to not introduce new ones. This is the only pointer output in the driver.
Quoted 6 lines
Remove the pointer formating from debug output.
Signed-off-by Sebastian Andrzej Siewior <[email protected]>---
v1…v2: https://lore.kernel.org/all/[email protected]/
- Update subject line (it is removed, not replaced).
please careful,
remove whole dev_dbg() when vchan_issue_pending() failure.
commit messesge should show why it is okay to remove dev_dbg() here.
Frank
Quoted 19 lines
drivers/dma/loongson/loongson2-apb-cmc-dma.c | 1 - 1 file changed, 1 deletion(-)drivers/dma/loongson/loongson2-apb-cmc-dma.c +0
-2@@ -337,7 +337,6 @@ static void loongson2_cmc_dma_issue_pending(struct dma_chan *chan)guard (spinlock_irqsave)(&lchan->vchan.lock);if (vchan_issue_pending (&lchan->vchan) && !lchan->desc) { -dev_dbg (chan2dev (lchan),"vchan %pK: issued\n" , &lchan->vchan);loongson2_cmc_dma_start_transfer (lchan); } } --2.55.0