Commit 59dd2a85 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown

regmap: debugfs: Improve warning message on debugfs_create_dir() failure

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: default avatarFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 17cf46cf
...@@ -583,7 +583,8 @@ void regmap_debugfs_init(struct regmap *map, const char *name) ...@@ -583,7 +583,8 @@ void regmap_debugfs_init(struct regmap *map, const char *name)
map->debugfs = debugfs_create_dir(name, regmap_debugfs_root); map->debugfs = debugfs_create_dir(name, regmap_debugfs_root);
if (!map->debugfs) { 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);
kfree(map->debugfs_name); kfree(map->debugfs_name);
map->debugfs_name = NULL; map->debugfs_name = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment