summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2026-09-18 12:37:25 +0200
committerAndi Shyti <andi@zenone.zhora.eu>2026-09-30 18:08:58 +0200
commit4e8bc6b5bbe6305e530e2f024cf983506d72f657 (patch)
tree3307467363eb15070f4e8bf3343b31d83ca6b1e0 /drivers/gpu
parentc9e608d1247cd4c286a54d7f26188c41e8f0a6c2 (diff)
drm/i915: Use %p for pointer formatting
Commit 2563a4524febe ("drm/i915: restrict kernel address leak in debugfs") introduced the %pK modifier in order not to leak kernel pointer. 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. Keeping the %p allows to assign an id to the object. Removing %pK makes it possible to remove its handling from the library. Use %p instead %pK to allow debugging if needed. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com> Link: https://patch.msgid.link/20260918103725.cfYzL1Wt@linutronix.de
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/i915_debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index a3e27f9e4f47..93ba7369ba6e 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -179,7 +179,7 @@ i915_debugfs_describe_obj(struct seq_file *m, struct drm_i915_gem_object *obj)
struct i915_vma *vma;
int pin_count = 0;
- seq_printf(m, "%pK: %c%c%c %8zdKiB %02x %02x %s%s%s",
+ seq_printf(m, "%p: %c%c%c %8zdKiB %02x %02x %s%s%s",
&obj->base,
get_tiling_flag(obj),
get_global_flag(obj),