aio-dio: fix error msg in aio-dio-subblock-eof-read.c
authorEric Sandeen <sandeen@sandeen.net>
Thu, 13 Mar 2014 04:18:42 +0000 (15:18 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 13 Mar 2014 04:18:42 +0000 (15:18 +1100)
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>
src/aio-dio-regress/aio-dio-subblock-eof-read.c

index a48841dfe4ca3e4f1d3fd01181527059dcef7d14..00bd0f13e2f33167449719269b7fdd7337909215 100644 (file)
@@ -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;