From: Eugene Syromyatnikov Date: Mon, 5 Sep 2016 01:32:40 +0000 (+0300) Subject: tests: fix printing of min_nr and nr arguments of io_getevents syscall X-Git-Tag: v4.14~119 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df00cad32ec7b40b45310c78640be12d02a525fe;p=strace 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. --- diff --git a/tests/aio.c b/tests/aio.c index 5a023cf2..8c5bfa7d 100644 --- a/tests/aio.c +++ b/tests/aio.c @@ -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);