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 dc1358b5ec95814c4e0f0ca0bec3d2b847029b24..ac2de0ed69adfc52db87dbd89391c030179e45c1 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 {