From: Eugene Syromyatnikov Date: Mon, 19 Dec 2016 21:32:40 +0000 (+0300) Subject: tests: fix preadv2-pwritev2 test on x32 X-Git-Tag: v4.16~324 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5451e9ffa6e999379f38ceec903801edcef3427a;p=strace tests: fix preadv2-pwritev2 test on x32 On x32 p(read|write)v(|2) syscalls are implemented via compat, which truncates len argument to unsigned int. * tests/preadv2-pwritev2.c (main): Print vlen argument as unsigned long. --- diff --git a/tests/preadv2-pwritev2.c b/tests/preadv2-pwritev2.c index 9f1dd95d..97deb4f9 100644 --- a/tests/preadv2-pwritev2.c +++ b/tests/preadv2-pwritev2.c @@ -192,14 +192,14 @@ main(void) syscall(__NR_preadv2, -1, NULL, vlen, pos_l, pos_h, 1); if (ENOSYS == errno) test_dumpio = 0; - tprintf("preadv2(-1, NULL, %llu, %lld, RWF_HIPRI) = -1 %s (%m)\n", - (unsigned long long) vlen, pos, errno2name()); + tprintf("preadv2(-1, NULL, %lu, %lld, RWF_HIPRI) = -1 %s (%m)\n", + (unsigned long) vlen, pos, errno2name()); syscall(__NR_pwritev2, -1, NULL, vlen, pos_l, pos_h, 1); if (ENOSYS == errno) test_dumpio = 0; - tprintf("pwritev2(-1, NULL, %llu, %lld, RWF_HIPRI) = -1 %s (%m)\n", - (unsigned long long) vlen, pos, errno2name()); + tprintf("pwritev2(-1, NULL, %lu, %lld, RWF_HIPRI) = -1 %s (%m)\n", + (unsigned long) vlen, pos, errno2name()); if (test_dumpio) dumpio();