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

This commit is contained in:
YAMAMOTO Takashi 2020-11-13 12:30:30 +09:00 committed by Xiang Xiao
parent 469daed335
commit 135ee16d6c

View File

@ -135,8 +135,8 @@ static void wakeup_action(int signo, siginfo_t *info, void *ucontext)
if (oldset != allsigs) if (oldset != allsigs)
{ {
printf("wakeup_action: ERROR sigprocmask=%x expected=%x\n", printf("wakeup_action: ERROR sigprocmask=%jx expected=%jx\n",
oldset, allsigs); (uintmax_t)oldset, (uintmax_t)allsigs);
} }
} }
@ -173,8 +173,9 @@ static int waiter_main(int argc, char *argv[])
} }
#ifndef SDCC #ifndef SDCC
printf("waiter_main: oact.sigaction=%p oact.sa_flags=%x oact.sa_mask=%x\n", printf("waiter_main: oact.sigaction=%p oact.sa_flags=%x "
oact.sa_sigaction, oact.sa_flags, oact.sa_mask); "oact.sa_mask=%jx\n",
oact.sa_sigaction, oact.sa_flags, (uintmax_t)oact.sa_mask);
#endif #endif
/* Take the semaphore */ /* Take the semaphore */