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 <[email protected]> --- 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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
