t/io_uring: don't append 'K' to IOPS if we don't divide by 1000
[fio.git] / t / io_uring.c
index 3edb3c34d92af32584b295194c2aa1c03660df9d..1b729ebf95443f0922a327165420f10bb5c93515 100644 (file)
@@ -137,7 +137,8 @@ struct io_uring_map_buffers {
        __s32   fd;
        __u32   buf_start;
        __u32   buf_end;
-       __u32   dir;
+       __u32   flags;
+       __u64   rsvd[2];
 };
 #endif
 
@@ -334,9 +335,7 @@ static int io_uring_map_buffers(struct submitter *s)
 {
        struct io_uring_map_buffers map = {
                .fd             = s->files[0].real_fd,
-               .buf_start      = 0,
                .buf_end        = depth,
-               .dir            = 0,
        };
 
        if (do_nop)
@@ -1362,7 +1361,7 @@ int main(int argc, char *argv[])
                if (iops > 100000)
                        printf("IOPS=%luK, ", iops / 1000);
                else
-                       printf("IOPS=%luK, ", iops);
+                       printf("IOPS=%lu, ", iops);
                if (!do_nop)
                        printf("BW=%luMiB/s, ", bw);
                printf("IOS/call=%ld/%ld, inflight=(%s)\n", rpc, ipc, fdepths);