From: Johannes Thumshirn Date: Mon, 19 Sep 2016 08:14:54 +0000 (+0200) Subject: sysfs print name of undiscoverable attribute group X-Git-Tag: v4.9-rc1~148^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=78618d395b65fadb2937a985308c3a4d2897ade2;p=thirdparty%2Fkernel%2Flinux.git sysfs print name of undiscoverable attribute group Print the name of an undiscoverable attribute group and not the pointer's address. Signed-off-by: Johannes Thumshirn Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/sysfs/group.c b/fs/sysfs/group.c index dc1358b5ec958..ac2de0ed69adf 100644 --- a/fs/sysfs/group.c +++ b/fs/sysfs/group.c @@ -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 {