From 10a0764175e5e6fa92082689bca821ce88b9bbf7 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 13 Nov 2020 12:33:34 +0900 Subject: [PATCH] testing/ostest/posixtimer.c: Fix printf format warnings --- testing/ostest/posixtimer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testing/ostest/posixtimer.c b/testing/ostest/posixtimer.c index e8fceab34..d5cd849bf 100644 --- a/testing/ostest/posixtimer.c +++ b/testing/ostest/posixtimer.c @@ -129,8 +129,8 @@ static void timer_expiration(int signo, siginfo_t *info, void *ucontext) if (oldset != allsigs) { - printf("timer_expiration: ERROR sigprocmask=%x expected=%x\n", - oldset, allsigs); + printf("timer_expiration: ERROR sigprocmask=%jx expected=%jx\n", + (uintmax_t)oldset, (uintmax_t)allsigs); } } @@ -179,8 +179,8 @@ void timer_test(void) } #ifndef SDCC - printf("timer_test: oact.sigaction=%p oact.sa_flags=%x oact.sa_mask=%x\n", - oact.sa_sigaction, oact.sa_flags, oact.sa_mask); + printf("timer_test: oact.sigaction=%p oact.sa_flags=%x oact.sa_mask=%jx\n", + oact.sa_sigaction, oact.sa_flags, (uintmax_t)oact.sa_mask); #endif /* Create the POSIX timer */