From ab31236905d6728b85f8d38600a61a6866f0049e Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 20 Nov 2022 14:07:04 +0800 Subject: [PATCH] Fix Error: chip/stm32_tim_lowerhalf.c:479:54: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' Signed-off-by: Xiang Xiao --- arch/arm/src/stm32f0l0g0/stm32_tim_lowerhalf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/stm32f0l0g0/stm32_tim_lowerhalf.c b/arch/arm/src/stm32f0l0g0/stm32_tim_lowerhalf.c index d51eb79fa5..efed56a4db 100644 --- a/arch/arm/src/stm32f0l0g0/stm32_tim_lowerhalf.c +++ b/arch/arm/src/stm32f0l0g0/stm32_tim_lowerhalf.c @@ -476,8 +476,8 @@ static int stm32_settimeout(struct timer_lowerhalf_s *lower, period = (uint32_t) timeout; } - tmrinfo(" clock=%lu period=%lu maxtimeout=%lu\n", clock, period, - (uint32_t)maxtimeout); + tmrinfo(" clock=%" PRIu32 " period=%" PRIu32 " maxtimeout=%" PRIu32 "\n", + clock, period, (uint32_t)maxtimeout); STM32_TIM_SETCLOCK(priv->tim, clock); STM32_TIM_SETPERIOD(priv->tim, period);