mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 08:49:45 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue