mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
aio-dio: fix error msg in aio-dio-subblock-eof-read.c
io_getevents returns the number of events; printing its return as "bytes read" is ... wrong. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
5f1cd20ff2
commit
9642986b9a
@@ -105,8 +105,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 %ld bytes, "
|
||||
"expected %d\n", ie.res, FILE_SIZE);
|
||||
|
||||
printf("AIO read of last block in file succeeded.\n");
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user