diff --git a/arch/arm/src/armv6-m/arm_svcall.c b/arch/arm/src/armv6-m/arm_svcall.c index 15c16f2d82..e61f83ab92 100644 --- a/arch/arm/src/armv6-m/arm_svcall.c +++ b/arch/arm/src/armv6-m/arm_svcall.c @@ -24,6 +24,7 @@ #include +#include #include #include #include @@ -439,7 +440,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: %" PRId32 "\n", regs[REG_R0]); #endif } break;