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: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
17cf46cfe9
commit
59dd2a8504
|
@ -583,7 +583,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);
|
||||
|
||||
kfree(map->debugfs_name);
|
||||
map->debugfs_name = NULL;
|
||||
|
|
Loading…
Reference in New Issue