Merge branch 'eta_display' of https://github.com/sitsofe/fio
[fio.git] / engines / rbd.c
index 4bae425cb3d088efb4b926582b550324a19b178d..39501eb00551a1b1572c7a5bdc7921a5684e602c 100644 (file)
@@ -517,6 +517,7 @@ static int fio_rbd_queue(struct thread_data *td, struct io_u *io_u)
        } else {
                dprint(FD_IO, "%s: Warning: unhandled ddir: %d\n", __func__,
                       io_u->ddir);
+               r = -EINVAL;
                goto failed_comp;
        }
 
@@ -604,7 +605,7 @@ static int fio_rbd_setup(struct thread_data *td)
                goto cleanup;
        }
 
-       dprint(FD_IO, "rbd-engine: image size: %lu\n", info.size);
+       dprint(FD_IO, "rbd-engine: image size: %" PRIu64 "\n", info.size);
 
        /* taken from "net" engine. Pretend we deal with files,
         * even if we do not have any ideas about files.