From 9e04704cb690a6856c9c5f71bda3a88d1495881c Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Sun, 22 Nov 2020 17:27:26 +0900 Subject: [PATCH] arch/risc-v/src/k210/k210_schedulesigaction.c: Fix syslog formats --- arch/risc-v/src/k210/k210_schedulesigaction.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/risc-v/src/k210/k210_schedulesigaction.c b/arch/risc-v/src/k210/k210_schedulesigaction.c index 9359822acf..26a6c7771d 100644 --- a/arch/risc-v/src/k210/k210_schedulesigaction.c +++ b/arch/risc-v/src/k210/k210_schedulesigaction.c @@ -41,6 +41,7 @@ #include +#include #include #include #include @@ -172,7 +173,8 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver) up_savestate(tcb->xcp.regs); - sinfo("PC/STATUS Saved: %016x/%016x New: %016x/%016x\n", + sinfo("PC/STATUS Saved: %016" PRIx64 "/%016" PRIx64 + " New: %016" PRIx64 "/%016" PRIx64 "\n", tcb->xcp.saved_epc, tcb->xcp.saved_int_ctx, CURRENT_REGS[REG_EPC], CURRENT_REGS[REG_INT_CTX]); } @@ -207,7 +209,8 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver) tcb->xcp.regs[REG_INT_CTX] = int_ctx; - sinfo("PC/STATUS Saved: %016x/%016x New: %016x/%016x\n", + sinfo("PC/STATUS Saved: %016" PRIx64 "/%016" PRIx64 + " New: %016" PRIx64 "/%016" PRIx64 "\n", tcb->xcp.saved_epc, tcb->xcp.saved_int_ctx, tcb->xcp.regs[REG_EPC], tcb->xcp.regs[REG_INT_CTX]); }