Add more context to the error messages
[fio.git] / engines / cpu.c
index f65f91d9e0f988e17e7d426bdde81f778a7bf14b..6ad547b60ad597cf2e06c27c08e05960692914ef 100644 (file)
@@ -9,7 +9,7 @@ static int fio_cpuio_setup(struct thread_data fio_unused *td)
 static int fio_cpuio_init(struct thread_data *td)
 {
        if (!td->cpuload) {
-               td_vmsg(td, EINVAL, "cpu thread needs rate");
+               td_vmsg(td, EINVAL, "cpu thread needs rate", "cpu_load");
                return 1;
        } else if (td->cpuload > 100)
                td->cpuload = 100;
@@ -24,7 +24,7 @@ static struct ioengine_ops ioengine = {
        .version        = FIO_IOOPS_VERSION,
        .init           = fio_cpuio_init,
        .setup          = fio_cpuio_setup,
-       .flags          = FIO_CPUIO,
+       .flags          = FIO_CPUIO | FIO_NULLIO,
 };
 
 static void fio_init fio_cpuio_register(void)