summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <jaxboe@fusionio.com>2011-01-25 13:06:16 +0100
committerJens Axboe <jaxboe@fusionio.com>2011-01-25 13:06:16 +0100
commitca740f4e2bdab2a94a8b6ddecba6dde605fbc866 (patch)
tree7058f10862b1e285b652cfa48228dda261993619
parent6035e7d6d1ed462176402615da37d4f987588c16 (diff)
downloadfio-ca740f4e2bdab2a94a8b6ddecba6dde605fbc866.tar.gz
fio-ca740f4e2bdab2a94a8b6ddecba6dde605fbc866.tar.bz2
Move version logging
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
-rw-r--r--init.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/init.c b/init.c
index 6666f372..f74077b3 100644
--- a/init.c
+++ b/init.c
@@ -1155,7 +1155,7 @@ static int parse_cmd_line(int argc, char *argv[])
read_only = 1;
break;
case 'v':
- /* already being printed, just quit */
+ log_info("%s\n", fio_version_string);
exit(0);
case 'e':
if (!strcmp("always", optarg))
@@ -1249,8 +1249,6 @@ int parse_options(int argc, char *argv[])
f_out = stdout;
f_err = stderr;
- log_info("%s\n", fio_version_string);
-
fio_options_fill_optstring();
fio_options_dup_and_init(l_opts);
@@ -1289,5 +1287,6 @@ int parse_options(int argc, char *argv[])
fio_gtod_cpu = def_thread.o.gtod_cpu;
}
+ log_info("%s\n", fio_version_string);
return 0;
}