Skip to contentSkip to conversation

dmaengine: loongson: Remove the %p pointer output

PATCH Superseded Sebastian Andrzej Siewior 2 participants 2 messages Sep 18

Subsystems (2)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

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
index 1c9a542edc859..27f8f7a5738d9 100644
@@ -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
#1 lore raw
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.

---
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
index 1c9a542edc859..27f8f7a5738d9 100644
@@ -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