.log_gz = o->log_gz,
.log_gz_store = o->log_gz_store,
};
- const char *pre = o->lat_log_file ? o->lat_log_file : o->name;
+ const char *pre =
+ (o->lat_log_file && strcmp(o->lat_log_file, "") != 0) ?
+ o->lat_log_file : o->name;
const char *suf;
if (p.log_gz_store)
gen_log_name(logname, sizeof(logname), "clat", pre,
td->thread_number, suf, o->per_job_logs);
setup_log(&td->clat_log, &p, logname);
+
}
if (o->write_hist_log) {
.log_gz = o->log_gz,
.log_gz_store = o->log_gz_store,
};
- const char *pre = o->hist_log_file ? o->hist_log_file : o->name;
+ const char *pre =
+ (o->hist_log_file && strcmp(o->hist_log_file, "") != 0) ?
+ o->hist_log_file : o->name;
const char *suf;
#ifndef CONFIG_ZLIB
.log_gz = o->log_gz,
.log_gz_store = o->log_gz_store,
};
- const char *pre = o->bw_log_file ? o->bw_log_file : o->name;
+ const char *pre =
+ (o->bw_log_file && strcmp(o->bw_log_file, "") != 0) ?
+ o->bw_log_file : o->name;
const char *suf;
if (fio_option_is_set(o, bw_avg_time))
.log_gz = o->log_gz,
.log_gz_store = o->log_gz_store,
};
- const char *pre = o->iops_log_file ? o->iops_log_file : o->name;
+ const char *pre =
+ (o->iops_log_file && strcmp(o->iops_log_file, "") != 0) ?
+ o->iops_log_file : o->name;
const char *suf;
if (fio_option_is_set(o, iops_avg_time))