The value of 'verbose' is either 1 (default) or 0 (-q)
and "verbose >= 2" will not be true.
After fix this, we get something like:
adding device /dev/sde id 2
adding device /dev/sdf id 3
during mkfs time when multiple devices are used.
Signed-off-by: Tomohiro Misono <misono.tomohiro@xxxxxxxxxxxxxx>
---
mkfs/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mkfs/main.c b/mkfs/main.c
index e405e5a2..c07cc1e1 100644
--- a/mkfs/main.c
+++ b/mkfs/main.c
@@ -1861,7 +1861,7 @@ int main(int argc, char **argv)
error("unable to add %s to filesystem: %d", file, ret);
goto out;
}
- if (verbose >= 2) {
+ if (verbose) {
struct btrfs_device *device;
device = container_of(fs_info->fs_devices->devices.next,
--
2.13.6
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html