[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240522114346.42951-1-yangxingui@huawei.com>
Date: Wed, 22 May 2024 11:43:46 +0000
From: Xingui Yang <yangxingui@...wei.com>
To: <gregkh@...uxfoundation.org>, <rafael@...nel.org>
CC: <linux-scsi@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linuxarm@...wei.com>, <prime.zeng@...ilicon.com>, <liyihang9@...wei.com>,
<kangfenglong@...wei.com>
Subject: [PATCH] driver core: Add log when devtmpfs create node failed
Currently, no exception information is output when devtmpfs create node
failed, so add log info for it.
Signed-off-by: Xingui Yang <yangxingui@...wei.com>
---
drivers/base/core.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 5f4e03336e68..32a41e0472b2 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -3691,7 +3691,10 @@ int device_add(struct device *dev)
if (error)
goto SysEntryError;
- devtmpfs_create_node(dev);
+ error = devtmpfs_create_node(dev);
+ if (error)
+ pr_info("devtmpfs create node for %s failed: %d\n",
+ dev_name(dev), error);
}
/* Notify clients of device addition. This call must come
--
2.17.1
Powered by blists - more mailing lists