#ifndef FIO_HAVE_LIBAIO
if (td->io_engine == FIO_LIBAIO) {
- fprintf(f_err, "Linux libaio not available\n");
+ log_err("Linux libaio not available\n");
return 1;
}
#endif
#ifndef FIO_HAVE_POSIXAIO
if (td->io_engine == FIO_POSIXAIO) {
- fprintf(f_err, "posix aio not available\n");
+ log_err("posix aio not available\n");
return 1;
}
#endif
return 0;
}
- fprintf(f_err, "fio: data direction: read, write, randread, randwrite, rw, randrw\n");
+ log_err("fio: data direction: read, write, randread, randwrite, rw, randrw\n");
return 1;
}
return 0;
}
- fprintf(f_err, "fio: verify types: md5, crc32\n");
+ log_err("fio: verify types: md5, crc32\n");
return 1;
}
return 0;
}
- fprintf(f_err, "fio: mem type: malloc, shm, mmap\n");
+ log_err("fio: mem type: malloc, shm, mmap\n");
return 1;
}
return 0;
}
- fprintf(f_err, "fio: ioengine: { linuxaio, aio, libaio }, posixaio, sync, mmap, sgio, splice\n");
+ log_err("fio: ioengine: { linuxaio, aio, libaio }, posixaio, sync, mmap, sgio, splice\n");
return 1;
}
if (!check_int(p, "prio", &prio)) {
#ifndef FIO_HAVE_IOPRIO
- fprintf(f_err, "io priorities not available\n");
+ log_err("io priorities not available\n");
ret = 1;
break;
#endif
}
if (!check_int(p, "prioclass", &prioclass)) {
#ifndef FIO_HAVE_IOPRIO
- fprintf(f_err, "io priorities not available\n");
+ log_err("io priorities not available\n");
ret = 1;
break;
#else
}
if (!check_int(p, "cpumask", &cpu)) {
#ifndef FIO_HAVE_CPU_AFFINITY
- fprintf(f_err, "cpu affinity not available\n");
+ log_err("cpu affinity not available\n");
ret = 1;
break;
#endif
}
if (!check_strstore(p, "iolog", tmpbuf)) {
if (td->write_iolog) {
- fprintf(f_err, "fio: read iolog overrides given write_iolog\n");
+ log_err("fio: read iolog overrides given write_iolog\n");
free(td->iolog_file);
td->write_iolog = 0;
}
td->iolog_file = strdup(tmpbuf);
td->write_iolog = 1;
} else
- fprintf(f_err, "fio: read iolog overrides given write_iolog\n");
+ log_err("fio: read iolog overrides given write_iolog\n");
fgetpos(f, &off);
continue;
}
}
if (!check_strstore(p, "ioscheduler", tmpbuf)) {
#ifndef FIO_HAVE_IOSCHED_SWITCH
- fprintf(f_err, "io scheduler switching not available\n");
+ log_err("io scheduler switching not available\n");
ret = 1;
break;
#else
parse_cmd_line(argc, argv);
if (!ini_file) {
- fprintf(f_err, "Need job file\n");
+ log_err("Need job file\n");
usage(argv[0]);
return 1;
}