tests: fix printing of min_nr and nr arguments of io_getevents syscall

* tests/aio.c (main): Change output format for min_nr and nr arguments
in io_getevents check to %ld, cast these arguments to long.
This commit is contained in:
Eugene Syromyatnikov 2016-09-05 04:32:40 +03:00 committed by Dmitry V. Levin
parent afcbaaf050
commit df00cad32e

View File

@ -166,11 +166,11 @@ main(void)
nr);
assert(syscall(__NR_io_getevents, *ctx, nr, nr + 1, ev, ts) == (long) nr);
printf("io_getevents(%lu, %u, %u, ["
printf("io_getevents(%lu, %ld, %ld, ["
"{data=%#llx, obj=%p, res=%u, res2=0}, "
"{data=%#llx, obj=%p, res=%u, res2=0}"
"], {0, 123456789}) = %u\n",
*ctx, nr, nr + 1,
*ctx, (long) nr, (long) (nr + 1),
(unsigned long long) cb[0].aio_data, &cb[0], sizeof_data0,
(unsigned long long) cb[1].aio_data, &cb[1], sizeof_data1,
nr);