diff options
| author | Alan Somers <asomers@FreeBSD.org> | 2017-11-14 21:11:55 +0000 |
|---|---|---|
| committer | Alan Somers <asomers@FreeBSD.org> | 2017-11-14 21:11:55 +0000 |
| commit | c4708ce80c750b3a3bdcc529b5f22639cbc37e8b (patch) | |
| tree | 7290a573667d7bc5f68d689e4c66cf6ff4d42662 | |
| parent | 2e36db147e0edeb1b213f283f9b41a8d1a902a88 (diff) | |
Notes
| -rw-r--r-- | tests/sys/aio/lio_kqueue_test.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/sys/aio/lio_kqueue_test.c b/tests/sys/aio/lio_kqueue_test.c index 399e053c5d96..3226573721c6 100644 --- a/tests/sys/aio/lio_kqueue_test.c +++ b/tests/sys/aio/lio_kqueue_test.c @@ -47,7 +47,6 @@ #define PATH_TEMPLATE "aio.XXXXXXXXXX" -#define DEBUG #define LIO_MAX 5 #define MAX_IOCBS_PER_LIO 64 #define MAX_IOCBS (LIO_MAX * MAX_IOCBS_PER_LIO) @@ -119,8 +118,8 @@ main(int argc, char *argv[]) = iocb[k]->aio_nbytes * k * (run + 1); #ifdef DEBUG - printf("hello iocb[k] %ld\n", - iocb[k]->aio_offset); + printf("hello iocb[k] %jd\n", + (intmax_t)iocb[k]->aio_offset); #endif iocb[k]->aio_lio_opcode = LIO_WRITE; } @@ -133,8 +132,9 @@ main(int argc, char *argv[]) error = errno; time(&time2); #ifdef DEBUG - printf("Time %ld %ld %ld result -> %d\n", - time1, time2, time2-time1, result); + printf("Time %jd %jd %jd result -> %d\n", + (intmax_t)time1, (intmax_t)time2, + (intmax_t)time2-time1, result); #endif if (result != 0) { errno = error; |
