aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kobject.c')
-rw-r--r--lib/kobject.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/kobject.c b/lib/kobject.c
index bbffa2110d43..38fcc60e661b 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -190,14 +190,14 @@ static int kobject_add_internal(struct kobject *kobj)
190 190
191 /* be noisy on error issues */ 191 /* be noisy on error issues */
192 if (error == -EEXIST) 192 if (error == -EEXIST)
193 printk(KERN_ERR "%s failed for %s with " 193 WARN(1, "%s failed for %s with "
194 "-EEXIST, don't try to register things with " 194 "-EEXIST, don't try to register things with "
195 "the same name in the same directory.\n", 195 "the same name in the same directory.\n",
196 __func__, kobject_name(kobj)); 196 __func__, kobject_name(kobj));
197 else 197 else
198 printk(KERN_ERR "%s failed for %s (%d)\n", 198 WARN(1, "%s failed for %s (error: %d parent: %s)\n",
199 __func__, kobject_name(kobj), error); 199 __func__, kobject_name(kobj), error,
200 dump_stack(); 200 parent ? kobject_name(parent) : "'none'");
201 } else 201 } else
202 kobj->state_in_sysfs = 1; 202 kobj->state_in_sysfs = 1;
203 203