diff options
author | Fengguang Wu <fengguang.wu@intel.com> | 2013-10-09 09:26:21 +0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-10-10 13:56:52 -0700 |
commit | 0ff18e3734c248fa516b4be942b1196832ee936c (patch) | |
tree | a978c59f375936c7e37c67a61dc08821a5e674bb /lib | |
parent | f715729ee4cb666f51749f6cd86d06fff1e6e17b (diff) | |
download | kernel_goldelico_gta04-0ff18e3734c248fa516b4be942b1196832ee936c.zip kernel_goldelico_gta04-0ff18e3734c248fa516b4be942b1196832ee936c.tar.gz kernel_goldelico_gta04-0ff18e3734c248fa516b4be942b1196832ee936c.tar.bz2 |
kobject: show debug info on delayed kobject release
Useful for locating buggy drivers on kernel oops.
It may add dozens of new lines to boot dmesg. DEBUG_KOBJECT_RELEASE is
hopefully only enabled in debug kernels (like maybe the Fedora rawhide
one, or at developers), so being a bit more verbose is likely ok.
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kobject.c b/lib/kobject.c index 669bf19..084f7b1 100644 --- a/lib/kobject.c +++ b/lib/kobject.c @@ -592,7 +592,7 @@ static void kobject_release(struct kref *kref) { struct kobject *kobj = container_of(kref, struct kobject, kref); #ifdef CONFIG_DEBUG_KOBJECT_RELEASE - pr_debug("kobject: '%s' (%p): %s, parent %p (delayed)\n", + pr_info("kobject: '%s' (%p): %s, parent %p (delayed)\n", kobject_name(kobj), kobj, __func__, kobj->parent); INIT_DELAYED_WORK(&kobj->release, kobject_delayed_cleanup); schedule_delayed_work(&kobj->release, HZ); |