sysfs print name of undiscoverable attribute group
authorJohannes Thumshirn <jthumshirn@suse.de>
Mon, 19 Sep 2016 08:14:54 +0000 (10:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Sep 2016 10:24:29 +0000 (12:24 +0200)
Print the name of an undiscoverable attribute group and not the
pointer's address.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/group.c

index dc1358b..ac2de0e 100644 (file)
@@ -233,8 +233,8 @@ void sysfs_remove_group(struct kobject *kobj,
                kn = kernfs_find_and_get(parent, grp->name);
                if (!kn) {
                        WARN(!kn, KERN_WARNING
-                            "sysfs group %p not found for kobject '%s'\n",
-                            grp, kobject_name(kobj));
+                            "sysfs group '%s' not found for kobject '%s'\n",
+                            grp->name, kobject_name(kobj));
                        return;
                }
        } else {