From 10c4d1318fff63eef1d22c6be6d816210277ae17 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 21 Dec 2018 15:37:16 -0700 Subject: [PATCH] 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 --- t/aio-ring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1