Andi Drebes
2009-Oct-31 20:55 UTC
[PATCH][TRIVIAL] btrfs-progs: correct error message in btrfs_scan_one_dir
When opendir() fails on the directory to be scanned, the error message should
mention the correct directory name instead of "/sys/block".
Signed-off-by: Andi Drebes <lists-receive@programmierforen.de>
---
diff --git a/utils.c b/utils.c
index 2f4c6e1..5c58071 100644
--- a/utils.c
+++ b/utils.c
@@ -694,7 +694,7 @@ again:
}
dirp = opendir(dirname);
if (!dirp) {
- fprintf(stderr, "Unable to open /sys/block for scanning\n");
+ fprintf(stderr, "Unable to open %s for scanning\n", dirname);
return -ENOENT;
}
while(1) {
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs"
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html