[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1520302384-21545-1-git-send-email-festevam@gmail.com>
Date: Mon, 5 Mar 2018 23:13:04 -0300
From: Fabio Estevam <festevam@...il.com>
To: broonie@...nel.org
Cc: linux-kernel@...r.kernel.org, Fabio Estevam <fabio.estevam@....com>
Subject: [PATCH] regmap: debugfs: Improve warning message on debugfs_create_dir() failure
From: Fabio Estevam <fabio.estevam@....com>
Currently when debugfs_create_dir() fails we receive a warning message
that provides no indication as to what was the directory entry that
failed to be created.
Improve the warning message by printing the directory name that failed
in order to help debugging.
Signed-off-by: Fabio Estevam <fabio.estevam@....com>
---
drivers/base/regmap/regmap-debugfs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/base/regmap/regmap-debugfs.c b/drivers/base/regmap/regmap-debugfs.c
index e3e7b91..68f21d6 100644
--- a/drivers/base/regmap/regmap-debugfs.c
+++ b/drivers/base/regmap/regmap-debugfs.c
@@ -581,7 +581,8 @@ void regmap_debugfs_init(struct regmap *map, const char *name)
map->debugfs = debugfs_create_dir(name, regmap_debugfs_root);
if (!map->debugfs) {
- dev_warn(map->dev, "Failed to create debugfs directory\n");
+ dev_warn(map->dev,
+ "Failed to create %s debugfs directory\n", name);
return;
}
--
2.7.4
Powered by blists - more mailing lists