From: Jens Axboe Date: Fri, 15 Apr 2016 15:03:34 +0000 (-0600) Subject: t/fio-verify-state: show completions in order X-Git-Tag: fio-2.9~4 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=eeea64a6ad6c1fed6c477a49bd5398559cf667d3 t/fio-verify-state: show completions in order We currently show them in array order, but that's logged in reverse. So show them from newest to latest. Signed-off-by: Jens Axboe --- diff --git a/t/verify-state.c b/t/verify-state.c index d744e6f1..9a2c3df6 100644 --- a/t/verify-state.c +++ b/t/verify-state.c @@ -27,7 +27,9 @@ static void show_s(struct thread_io_list *s, unsigned int no_s) printf("Index:\t\t%llu\n", (unsigned long long) s->index); printf("Completions:\n"); - for (i = 0; i < s->no_comps; i++) { + if (!s->no_comps) + return; + for (i = s->no_comps - 1; i >= 0; i--) { printf("\t(file=%2llu) %llu\n", (unsigned long long) s->comps[i].fileno, (unsigned long long) s->comps[i].offset);