summaryrefslogtreecommitdiff
path: root/mkfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'mkfs.c')
-rw-r--r--mkfs.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/mkfs.c b/mkfs.c
index 5c60b2b..8691734 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -328,7 +328,6 @@ static void print_usage(int ret)
fprintf(stderr, "\t-U|--uuid UUID specify the filesystem UUID\n");
fprintf(stderr, "\t-q|--quiet no messages except errors\n");
fprintf(stderr, "\t-V|--version print the mkfs.btrfs version and exit\n");
- fprintf(stderr, "%s\n", PACKAGE_STRING);
exit(ret);
}
@@ -1464,6 +1463,11 @@ int main(int ac, char **av)
}
}
+ if (verbose) {
+ printf("%s\n", PACKAGE_STRING);
+ printf("See %s for more information.\n\n", PACKAGE_URL);
+ }
+
sectorsize = max(sectorsize, (u32)sysconf(_SC_PAGESIZE));
saved_optind = optind;
dev_cnt = ac - optind;
@@ -1587,12 +1591,6 @@ int main(int ac, char **av)
if (ret)
exit(1);
- /* if we are here that means all devs are good to btrfsify */
- if (verbose) {
- printf("%s\n", PACKAGE_STRING);
- printf("See %s for more information.\n\n", PACKAGE_URL);
- }
-
dev_cnt--;
if (!source_dir_set) {