Commit 78618d39 authored by Johannes Thumshirn's avatar Johannes Thumshirn Committed by Greg Kroah-Hartman

sysfs print name of undiscoverable attribute group

Print the name of an undiscoverable attribute group and not the
pointer's address.
Signed-off-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6ee6d1cb
...@@ -233,8 +233,8 @@ void sysfs_remove_group(struct kobject *kobj, ...@@ -233,8 +233,8 @@ void sysfs_remove_group(struct kobject *kobj,
kn = kernfs_find_and_get(parent, grp->name); kn = kernfs_find_and_get(parent, grp->name);
if (!kn) { if (!kn) {
WARN(!kn, KERN_WARNING WARN(!kn, KERN_WARNING
"sysfs group %p not found for kobject '%s'\n", "sysfs group '%s' not found for kobject '%s'\n",
grp, kobject_name(kobj)); grp->name, kobject_name(kobj));
return; return;
} }
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment