diff options
author | Mark Salyzyn <salyzyn@google.com> | 2014-04-17 14:12:48 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-04-17 14:12:48 +0000 |
commit | fb109b894a5fc2891e49ec8e81c0dda171b45b7f (patch) | |
tree | 6bbadde3b4989e584101a1145fc3b3bae329895c | |
parent | 75cd8ffa850aa6414d1771bbc44c4ae806702b85 (diff) | |
parent | 8942eef218b451ecb07fa01d3fde1ec681ad8932 (diff) | |
download | extras-fb109b894a5fc2891e49ec8e81c0dda171b45b7f.tar.gz |
Merge "directiotest: 64 bit compile issue"
-rw-r--r-- | tests/directiotest/directiotest.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/tests/directiotest/directiotest.c b/tests/directiotest/directiotest.c index 989f9e09..6ed8bda1 100644 --- a/tests/directiotest/directiotest.c +++ b/tests/directiotest/directiotest.c @@ -25,19 +25,20 @@ /* For O_DIRECT */ #define _GNU_SOURCE -#include <stdio.h> -#include <stdlib.h> -#include <stdint.h> -#include <string.h> #include <ctype.h> #include <errno.h> -#include <limits.h> #include <fcntl.h> -#include <unistd.h> -#include <sys/stat.h> -#include <sys/types.h> +#include <inttypes.h> +#include <limits.h> +#include <stdint.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> #include <sys/ioctl.h> #include <sys/mman.h> +#include <sys/stat.h> +#include <sys/types.h> +#include <unistd.h> #include <linux/fs.h> @@ -249,7 +250,7 @@ int main(int argc, const char *argv[]) } if (memcmp(write_buf, read_buf, test_size)) { - printf("Readback verification failed at block %llu\n\n", + printf("Readback verification failed at block %" PRIu64 "\n\n", cur_blk); printf("Written data:\n"); dump_hex(write_buf, test_size); |