mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
bus: mhi: host: Use %p for pointer formatting
Since commit ad67b74d24 ("printk: hash addresses printed with %p")
pointers are hashed by default and the behaviour can be controller by
`hash_pointers' boot argument.
Removing %pK makes it possible to remove its handling from the library.
The pointers are still hashed so there is no address leak. The policy on
%p is to not introduce new ones.
Use %p for pointer formatting instead of removing it so it allows
debugging.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Link: https://patch.msgid.link/20260918103236.LFOXxRKS@linutronix.de
This commit is contained in:
parent
b1b35aa260
commit
ba9eee2d6f
|
|
@ -72,7 +72,7 @@ static int mhi_debugfs_events_show(struct seq_file *m, void *d)
|
|||
seq_printf(m, " rp: 0x%llx wp: 0x%llx", le64_to_cpu(er_ctxt->rp),
|
||||
le64_to_cpu(er_ctxt->wp));
|
||||
|
||||
seq_printf(m, " local rp: 0x%pK db: 0x%pad\n", ring->rp,
|
||||
seq_printf(m, " local rp: 0x%p db: 0x%pad\n", ring->rp,
|
||||
&mhi_event->db_cfg.db_val);
|
||||
}
|
||||
|
||||
|
|
@ -120,7 +120,7 @@ static int mhi_debugfs_channels_show(struct seq_file *m, void *d)
|
|||
le64_to_cpu(chan_ctxt->rbase), le64_to_cpu(chan_ctxt->rlen),
|
||||
le64_to_cpu(chan_ctxt->rp), le64_to_cpu(chan_ctxt->wp));
|
||||
|
||||
seq_printf(m, " local rp: 0x%pK local wp: 0x%pK db: 0x%pad\n",
|
||||
seq_printf(m, " local rp: 0x%p local wp: 0x%p db: 0x%pad\n",
|
||||
ring->rp, ring->wp,
|
||||
&mhi_chan->db_cfg.db_val);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user