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

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 <>
Signed-off-by: Mark Brown's avatarMark Brown <>
parent 17cf46cf
......@@ -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");
"Failed to create %s debugfs directory\n", name);
map->debugfs_name = NULL;
Supports Markdown
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