libpmem: fix type print
authorJens Axboe <axboe@kernel.dk>
Tue, 7 Aug 2018 14:09:47 +0000 (08:09 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 7 Aug 2018 14:09:47 +0000 (08:09 -0600)
Fixes: 5fff95436922 ("Add support for >= 4G block sizes")
Fixes: https://github.com/axboe/fio/issues/639
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/libpmem.c

index 4ef3094ef3bd6ab230c7e51c70bb4904513eaa70..99c7b50ddc23a1f188d1a30e0fb249a38afbdfae 100644 (file)
@@ -424,10 +424,10 @@ static int fio_libpmem_prep(struct thread_data *td, struct io_u *io_u)
        /*
         * It fits within existing mapping, use it
         */
-       dprint(FD_IO," io_u->offset %lld : fdd->libpmem_off %ld : "
-                       "io_u->buflen %ld : fdd->libpmem_sz %ld\n",
-                       io_u->offset, fdd->libpmem_off,
-                       io_u->buflen, fdd->libpmem_sz);
+       dprint(FD_IO," io_u->offset %llu : fdd->libpmem_off %llu : "
+                       "io_u->buflen %llu : fdd->libpmem_sz %llu\n",
+                       io_u->offset, (unsigned long long) fdd->libpmem_off,
+                       io_u->buflen, (unsigned long long) fdd->libpmem_sz);
 
        if (io_u->offset >= fdd->libpmem_off &&
            (io_u->offset + io_u->buflen <=