From: Jens Axboe Date: Fri, 21 Dec 2018 22:37:16 +0000 (-0700) Subject: t/aio-ring: print head/tail as unsigneds X-Git-Tag: fio-3.13~62 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=10c4d1318fff63eef1d22c6be6d816210277ae17;p=fio.git t/aio-ring: print head/tail as unsigneds Since we're wrapping now and using the full range, we can get logging ala: IOPS=1094880, IOS/call=32/32, inflight=32 (head=-1509517216 tail=-1509517216), Cachehit=0.00% Ensure we print as unsigned, as that's the right type. Signed-off-by: Jens Axboe --- diff --git a/t/aio-ring.c b/t/aio-ring.c index 0d53b574..900f4640 100644 --- a/t/aio-ring.c +++ b/t/aio-ring.c @@ -443,7 +443,7 @@ int main(int argc, char *argv[]) rpc = (this_done - done) / (this_call - calls); ipc = (this_reap - reap) / (this_call - calls); } - printf("IOPS=%lu, IOS/call=%lu/%lu, inflight=%u (head=%d tail=%d), Cachehit=%0.2f%%\n", + printf("IOPS=%lu, IOS/call=%lu/%lu, inflight=%u (head=%u tail=%u), Cachehit=%0.2f%%\n", this_done - done, rpc, ipc, s->inflight, s->cq_ring->head, s->cq_ring->tail, hit); done = this_done;