From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755656AbcIOTol (ORCPT ); Thu, 15 Sep 2016 15:44:41 -0400 Received: from mx2.suse.de ([195.135.220.15]:42355 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753482AbcIOToV (ORCPT ); Thu, 15 Sep 2016 15:44:21 -0400 From: Johannes Thumshirn To: Greg KH Cc: Linux Kernel Mailinglist , Johannes Thumshirn Subject: [PATCH] sysfs print name of undiscoverable attribute group as well Date: Thu, 15 Sep 2016 21:44:06 +0200 Message-Id: <1473968646-86323-1-git-send-email-jthumshirn@suse.de> X-Mailer: git-send-email 1.8.5.6 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Print the name of an undiscoverable attribute group as well, not just the pointer's address. Signed-off-by: Johannes Thumshirn --- 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..b1a3557 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' %p not found for kobject '%s'\n", + grp->name, grp, kobject_name(kobj)); return; } } else { -- 1.8.5.6