aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/lib/api/fs/debugfs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/lib/api/fs/debugfs.c b/tools/lib/api/fs/debugfs.c
index bf9e21648894..d2b18e887071 100644
--- a/tools/lib/api/fs/debugfs.c
+++ b/tools/lib/api/fs/debugfs.c
@@ -106,6 +106,13 @@ int debugfs__strerror_open(int err, char *buf, size_t size, const char *filename
106 106
107 switch (err) { 107 switch (err) {
108 case ENOENT: 108 case ENOENT:
109 if (debugfs_found) {
110 snprintf(buf, size,
111 "Error:\tFile %s/%s not found.\n"
112 "Hint:\tPerhaps this kernel misses some CONFIG_ setting to enable this feature?.\n",
113 debugfs_mountpoint, filename);
114 break;
115 }
109 snprintf(buf, size, "%s", 116 snprintf(buf, size, "%s",
110 "Error:\tUnable to find debugfs\n" 117 "Error:\tUnable to find debugfs\n"
111 "Hint:\tWas your kernel compiled with debugfs support?\n" 118 "Hint:\tWas your kernel compiled with debugfs support?\n"