X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fkobject.c;h=34f847252c02116abe3551c78502be24d97d3ac9;hb=a5f4276787d63f726b751d80b5b51f0c8d4d0384;hp=763d70a189410cb7307b87474801a662f631f806;hpb=15d56b3921d2e52c7747af21fcdf04e940aeb09b;p=platform%2Fkernel%2Flinux-exynos.git diff --git a/lib/kobject.c b/lib/kobject.c index 763d70a..34f8472 100644 --- a/lib/kobject.c +++ b/lib/kobject.c @@ -234,14 +234,12 @@ static int kobject_add_internal(struct kobject *kobj) /* be noisy on error issues */ if (error == -EEXIST) - WARN(1, "%s failed for %s with " - "-EEXIST, don't try to register things with " - "the same name in the same directory.\n", - __func__, kobject_name(kobj)); + pr_err("%s failed for %s with -EEXIST, don't try to register things with the same name in the same directory.\n", + __func__, kobject_name(kobj)); else - WARN(1, "%s failed for %s (error: %d parent: %s)\n", - __func__, kobject_name(kobj), error, - parent ? kobject_name(parent) : "'none'"); + pr_err("%s failed for %s (error: %d parent: %s)\n", + __func__, kobject_name(kobj), error, + parent ? kobject_name(parent) : "'none'"); } else kobj->state_in_sysfs = 1;