Since iovecs themselves are printed evan syscall has failed now, test is
updated to reflect this. It is notable, though, that this is the only
place where this case is checked.

* tests/preadv.c: Update output for the case when preadv with singe-item
iovec failed.
---
 tests/preadv.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/preadv.c b/tests/preadv.c
index eb53a5e..2243eb8 100644
--- a/tests/preadv.c
+++ b/tests/preadv.c
@@ -82,7 +82,8 @@ main(void)
 
        if (preadv(0, iov, 1, -1) != -1)
                perror_msg_and_fail("preadv");
-       printf("preadv(0, %p, 1, -1) = -1 EINVAL (%m)\n", iov);
+       printf("preadv(0, [{iov_base=%p, iov_len=%zu}], 1, -1) = "
+              "-1 EINVAL (%m)\n", iov->iov_base, iov->iov_len);
 
        if (preadv(0, NULL, 1, -2) != -1)
                perror_msg_and_fail("preadv");
-- 
1.7.10.4


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to