summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-12-12 22:11:57 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2022-12-12 22:11:57 +0300
commitf10bc40168032962ebee26894bdbdc972cde35bf (patch)
treeb567fc980ea176a5fe67f3b5ac6c299aa4e2a812 /lib
parent9c2b840a3b446ec2a7fc1cfb68af481905ec6f5f (diff)
parentc4db2d3b70e586c7c856c891f4f7052e8d789a06 (diff)
downloadlinux-f10bc40168032962ebee26894bdbdc972cde35bf.tar.xz
Merge tag 'core-debugobjects-2022-12-10' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull debugobjects update from Thomas Gleixner: "A single update for debugobjects: Add the object pointer to the debug output for better correlation with other debug facilities" * tag 'core-debugobjects-2022-12-10' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: debugobjects: Print object pointer in debug_print_object()
Diffstat (limited to 'lib')
-rw-r--r--lib/debugobjects.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/debugobjects.c b/lib/debugobjects.c
index 337d797a7141..4c670d3b6965 100644
--- a/lib/debugobjects.c
+++ b/lib/debugobjects.c
@@ -500,9 +500,9 @@ static void debug_print_object(struct debug_obj *obj, char *msg)
descr->debug_hint(obj->object) : NULL;
limit++;
WARN(1, KERN_ERR "ODEBUG: %s %s (active state %u) "
- "object type: %s hint: %pS\n",
+ "object: %p object type: %s hint: %pS\n",
msg, obj_states[obj->state], obj->astate,
- descr->name, hint);
+ obj->object, descr->name, hint);
}
debug_objects_warnings++;
}