diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2018-03-06 05:13:04 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-03-06 17:49:28 +0300 |
commit | 59dd2a85040103e95b1c87b1b920d357ee91dada (patch) | |
tree | 4c843a463a6eef9eeb1f6d797eaf65ed22540a57 /drivers/base/regmap/regmap-debugfs.c | |
parent | 17cf46cfe975f1dd04db6bd38398923846512d49 (diff) | |
download | linux-59dd2a85040103e95b1c87b1b920d357ee91dada.tar.xz |
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>
Diffstat (limited to 'drivers/base/regmap/regmap-debugfs.c')
-rw-r--r-- | drivers/base/regmap/regmap-debugfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap-debugfs.c b/drivers/base/regmap/regmap-debugfs.c index c84f5ceb015a..87b562e49a43 100644 --- a/drivers/base/regmap/regmap-debugfs.c +++ b/drivers/base/regmap/regmap-debugfs.c @@ -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; |