X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=init.c;h=6b6e386e398a04b4d8e27c7a034e6cd66e58025c;hp=bc17b40213a5bacdcecae2ca89e937ef86d6c8b8;hb=66da8a6041be849ef722f5cb9a6cd77db72b79cf;hpb=5d1194c76716b8440e6aa7c6e2f36041193826a0 diff --git a/init.c b/init.c index bc17b402..6b6e386e 100644 --- a/init.c +++ b/init.c @@ -1426,12 +1426,6 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num, } if (o->hist_log_file) { -#ifndef CONFIG_ZLIB - if (td->client_type) { - log_err("fio: --write_hist_log requires zlib in client/server mode\n"); - goto err; - } -#endif struct log_params p = { .td = td, .avg_msec = o->log_avg_msec, @@ -1444,6 +1438,13 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num, }; const char *suf; +#ifndef CONFIG_ZLIB + if (td->client_type) { + log_err("fio: --write_hist_log requires zlib in client/server mode\n"); + goto err; + } +#endif + if (p.log_gz_store) suf = "log.fz"; else