| To: | xfs-oss <xfs@xxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH] xfstests: fix error msg in aio-dio-subblock-eof-read.c |
| From: | Eric Sandeen <sandeen@xxxxxxxxxx> |
| Date: | Mon, 03 Mar 2014 23:24:25 -0600 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
io_getevents returns the number of events; printing its
return as "bytes read" is ... wrong.
Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---
diff --git a/src/aio-dio-regress/aio-dio-subblock-eof-read.c
b/src/aio-dio-regress/aio-dio-subblock-eof-read.c
index a48841d..8f74cec 100644
--- a/src/aio-dio-regress/aio-dio-subblock-eof-read.c
+++ b/src/aio-dio-regress/aio-dio-subblock-eof-read.c
@@ -105,8 +107,8 @@ main(int argc, char **argv)
* are broken, we may very well see a result of 4k.
*/
if (ie.res != FILE_SIZE)
- fail("AIO read of last block in file returned %d bytes, "
- "expected %d\n", ret, FILE_SIZE);
+ fail("AIO read of last block in file returned %lu bytes, "
+ "expected %d\n", ie.res, FILE_SIZE);
printf("AIO read of last block in file succeeded.\n");
return 0;
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | ÐÐÐÐÑÑÑÐÐ ÑÐÐÑÐ Woody O'Time, zjxac |
|---|---|
| Next by Date: | [PATCH] xfstests: memset proper length in resvtest.c, Eric Sandeen |
| Previous by Thread: | ÐÐÐÐÑÑÑÐÐ ÑÐÐÑÐ Woody O'Time, zjxac |
| Next by Thread: | [PATCH V2] xfstests: fix error msg in aio-dio-subblock-eof-read.c, Eric Sandeen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |