Commit 65f99db2 authored by Patrick Mochel's avatar Patrick Mochel

kobject: Add better debugging for failed registrations.

From Steve Hemminger (shemminger@osdl.org)
parent eccd9e25
......@@ -285,7 +285,11 @@ int kobject_register(struct kobject * kobj)
if (kobj) {
kobject_init(kobj);
error = kobject_add(kobj);
WARN_ON(error);
if (error) {
printk("kobject_register failed for %s (%d)\n",
kobj->name,error);
dump_stack();
}
} else
error = -EINVAL;
return error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment