diff --git a/testing/ostest/aio.c b/testing/ostest/aio.c index fd08ff3f1..7eddbc76e 100644 --- a/testing/ostest/aio.c +++ b/testing/ostest/aio.c @@ -155,7 +155,7 @@ static int check_done(void) { /* Check if the I/O has completed */ - printf(" list[%d]. result = %d\n", i, aiocbp->aio_result); + printf(" list[%d]. result = %zd\n", i, aiocbp->aio_result); if (aiocbp->aio_lio_opcode == LIO_NOP) { printf(" NO operation\n"); @@ -219,7 +219,7 @@ static int remove_done(void) { /* Check if the I/O has completed */ - printf(" list[%d]. result = %d\n", i, aiocbp->aio_result); + printf(" list[%d]. result = %zd\n", i, aiocbp->aio_result); if (aiocbp->aio_lio_opcode == LIO_NOP) { printf(" NO operation\n"); diff --git a/testing/ostest/sporadic2.c b/testing/ostest/sporadic2.c index 00a0c3dfc..d295ae619 100644 --- a/testing/ostest/sporadic2.c +++ b/testing/ostest/sporadic2.c @@ -44,7 +44,7 @@ #define PRIO_MID 100 #define PRIO_HIGH1 180 #define PRIO_HIGH2 170 -#define REPL_INTERVAL 100000000L +#define REPL_INTERVAL INT32_C(100000000) #define MAX_BUDGET (REPL_INTERVAL / 2) #define PRIO_HI_NDX 0 #define PRIO_LO_NDX 1