testing/ostest/posixtimer.c: Fix printf format warnings

This commit is contained in:
YAMAMOTO Takashi 2020-11-13 12:33:34 +09:00 committed by Xiang Xiao
parent 361615b8b4
commit 10a0764175

View File

@ -129,8 +129,8 @@ static void timer_expiration(int signo, siginfo_t *info, void *ucontext)
if (oldset != allsigs) if (oldset != allsigs)
{ {
printf("timer_expiration: ERROR sigprocmask=%x expected=%x\n", printf("timer_expiration: ERROR sigprocmask=%jx expected=%jx\n",
oldset, allsigs); (uintmax_t)oldset, (uintmax_t)allsigs);
} }
} }
@ -179,8 +179,8 @@ void timer_test(void)
} }
#ifndef SDCC #ifndef SDCC
printf("timer_test: oact.sigaction=%p oact.sa_flags=%x oact.sa_mask=%x\n", printf("timer_test: oact.sigaction=%p oact.sa_flags=%x oact.sa_mask=%jx\n",
oact.sa_sigaction, oact.sa_flags, oact.sa_mask); oact.sa_sigaction, oact.sa_flags, (uintmax_t)oact.sa_mask);
#endif #endif
/* Create the POSIX timer */ /* Create the POSIX timer */