Include fio version in normal output
[fio.git] / init.c
diff --git a/init.c b/init.c
index 59526ce5e140976a204f7a22dddf1a9ed97c5d18..97eac4363bdcb277ca0fca8935b71a74ce2ce777 100644 (file)
--- a/init.c
+++ b/init.c
@@ -958,7 +958,6 @@ static int setup_thread_area(void)
 
 static void usage(const char *name)
 {
-       printf("%s\n", fio_version_string);
        printf("%s [options] [job options] <job file(s)>\n", name);
        printf("\t--debug=options\tEnable debug logging\n");
        printf("\t--output\tWrite output to file\n");
@@ -1197,6 +1196,8 @@ int parse_options(int argc, char *argv[])
        f_out = stdout;
        f_err = stderr;
 
+       log_info("%s\n", fio_version_string);
+
        fio_options_dup_and_init(l_opts);
 
        if (setup_thread_area())