Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1486239 > unrolled thread

[PATCH v2] sysfs print name of undiscoverable attribute group

Started byJohannes Thumshirn <jthumshirn@suse.de>
First post2016-09-19 10:20 +0200
Last post2016-09-19 10:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH v2] sysfs print name of undiscoverable attribute group Johannes Thumshirn <jthumshirn@suse.de> - 2016-09-19 10:20 +0200

#1486239 — [PATCH v2] sysfs print name of undiscoverable attribute group

FromJohannes Thumshirn <jthumshirn@suse.de>
Date2016-09-19 10:20 +0200
Subject[PATCH v2] sysfs print name of undiscoverable attribute group
Message-ID<sj1XX-2Zs-11@gated-at.bofh.it>
Print the name of an undiscoverable attribute group and not the
pointer's address.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
---
 fs/sysfs/group.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/sysfs/group.c b/fs/sysfs/group.c
index dc1358b..ac2de0e 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 {
-- 
1.8.5.6

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web