Currently, no exception information is output when devtmpfs create node failed, so add log info for it. Signed-off-by: Xingui Yang <yangxingui@xxxxxxxxxx> --- 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