Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <jthumshirn@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Johannes Thumshirn and committed by
Greg Kroah-Hartman
78618d39 6ee6d1cb

+2 -2
+2 -2
fs/sysfs/group.c
··· 233 233 kn = kernfs_find_and_get(parent, grp->name); 234 234 if (!kn) { 235 235 WARN(!kn, KERN_WARNING 236 - "sysfs group %p not found for kobject '%s'\n", 237 - grp, kobject_name(kobj)); 236 + "sysfs group '%s' not found for kobject '%s'\n", 237 + grp->name, kobject_name(kobj)); 238 238 return; 239 239 } 240 240 } else {