diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-30 05:08:26 -0700 | 
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-30 05:08:26 -0700 | 
| commit | cd4846c5a68da77705164924f47001af3b499dec (patch) | |
| tree | 226295e35148ee7a9d303c6a218790b7a8107976 /lib/kobject.c | |
| parent | 9ee84466b7130360d07241baf4c95a553fc0a997 (diff) | |
| parent | 6da6c0db5316275015e8cc2959f12a17584aeb64 (diff) | |
Merge 4.17-rc3 into driver-core-next
We want the fixes in here as well for testing.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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)  		/* 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;  | 
