diff options
Diffstat (limited to 'lib/kobject.c')
-rw-r--r-- | lib/kobject.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/kobject.c b/lib/kobject.c index e1d1f290bf35..18989b5b3b56 100644 --- a/lib/kobject.c +++ b/lib/kobject.c | |||
@@ -233,13 +233,12 @@ static int kobject_add_internal(struct kobject *kobj) | |||
233 | 233 | ||
234 | /* be noisy on error issues */ | 234 | /* be noisy on error issues */ |
235 | if (error == -EEXIST) | 235 | if (error == -EEXIST) |
236 | WARN(1, | 236 | pr_err("%s failed for %s with -EEXIST, don't try to register things with the same name in the same directory.\n", |
237 | "%s failed for %s with -EEXIST, don't try to register things with the same name in the same directory.\n", | 237 | __func__, kobject_name(kobj)); |
238 | __func__, kobject_name(kobj)); | ||
239 | else | 238 | else |
240 | WARN(1, "%s failed for %s (error: %d parent: %s)\n", | 239 | pr_err("%s failed for %s (error: %d parent: %s)\n", |
241 | __func__, kobject_name(kobj), error, | 240 | __func__, kobject_name(kobj), error, |
242 | parent ? kobject_name(parent) : "'none'"); | 241 | parent ? kobject_name(parent) : "'none'"); |
243 | } else | 242 | } else |
244 | kobj->state_in_sysfs = 1; | 243 | kobj->state_in_sysfs = 1; |
245 | 244 | ||