X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=init.c;h=a04198f3e08c77a02a3d2286c350091106e9b086;hb=cf3d824147fe285bba1c93f341f6e44c34aaccd9;hp=8c9faec22f2cb5a67150d1264d600be1cdf709a9;hpb=812409e9486a37ba2f51e6e23c97e6ae8e26ff9a;p=fio.git diff --git a/init.c b/init.c index 8c9faec2..a04198f3 100644 --- a/init.c +++ b/init.c @@ -25,14 +25,7 @@ #include "fio_version.h" -#if FIO_PATCH > 0 -const char fio_version_string[] = __fio_stringify(FIO_MAJOR) "." \ - __fio_stringify(FIO_MINOR) "." \ - __fio_stringify(FIO_PATCH); -#else -const char fio_version_string[] = __fio_stringify(FIO_MAJOR) "." \ - __fio_stringify(FIO_MINOR); -#endif +const char fio_version_string[] = FIO_VERSION; #define FIO_RANDSEED (0xb1899bedUL) @@ -860,12 +853,7 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num, if (is_backend && !recursed) fio_server_send_add_job(td); - if (!strcmp(td->io_ops->name, "cpuio")) { - log_info("%s: ioengine=cpu, cpuload=%u," - " cpucycle=%u\n", td->o.name, - td->o.cpuload, - td->o.cpucycle); - } else { + if (!(td->io_ops->flags & FIO_NOIO)) { char *c1, *c2, *c3, *c4; c1 = fio_uint_to_kmg(td->o.min_bs[DDIR_READ]); @@ -1187,7 +1175,7 @@ static int fill_def_thread(void) static void usage(const char *name) { - printf("fio %s\n", fio_version_string); + printf("%s\n", fio_version_string); printf("%s [options] [job options] \n", name); printf(" --debug=options\tEnable debug logging. May be one/more of:\n" "\t\t\tprocess,file,io,mem,blktrace,verify,random,parse,\n" @@ -1460,7 +1448,7 @@ int parse_cmd_line(int argc, char *argv[], int client_type) break; case 'v': if (!cur_client) { - log_info("fio %s\n", fio_version_string); + log_info("%s\n", fio_version_string); do_exit++; } break; @@ -1699,7 +1687,12 @@ int parse_options(int argc, char *argv[]) } if (!terse_output) - log_info("fio %s\n", fio_version_string); + log_info("%s\n", fio_version_string); return 0; } + +void options_default_fill(struct thread_options *o) +{ + memcpy(o, &def_thread.o, sizeof(*o)); +}