X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=lib%2Fkobject.c;h=34f847252c02116abe3551c78502be24d97d3ac9;hb=ba3c8e1266f31574b2a8ddfb28a255901832d116;hp=763d70a189410cb7307b87474801a662f631f806;hpb=bb47e964175e5fb4c163066e4373fac055fe5da0;p=mirror_ubuntu-bionic-kernel.git diff --git a/lib/kobject.c b/lib/kobject.c index 763d70a18941..34f847252c02 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;