From 33892dcc5462aa3742672b9232ce707fb9441261 Mon Sep 17 00:00:00 2001 From: Michael Jung Date: Wed, 3 Mar 2021 18:31:05 +0100 Subject: [PATCH] armv8-m/arm_svcall.c: Fix compiler warning regs[REG_R0] is uint32_t type, but '%d' expects int type. Signed-off-by: Michael Jung --- arch/arm/src/armv8-m/arm_svcall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/armv8-m/arm_svcall.c b/arch/arm/src/armv8-m/arm_svcall.c index 2da6156da7..ec03ce0cfe 100644 --- a/arch/arm/src/armv8-m/arm_svcall.c +++ b/arch/arm/src/armv8-m/arm_svcall.c @@ -453,7 +453,7 @@ int arm_svcall(int irq, FAR void *context, FAR void *arg) rtcb->flags |= TCB_FLAG_SYSCALL; #else - svcerr("ERROR: Bad SYS call: %d\n", regs[REG_R0]); + svcerr("ERROR: Bad SYS call: %d\n", (int)regs[REG_R0]); #endif } break;