You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ar...@apache.org on 2022/11/21 09:39:21 UTC
[incubator-nuttx] 09/12: Fix Error: chip/stm32_tim_lowerhalf.c:479:54: error: format specifies type 'unsigned long' but the argument has type 'uint32_t'
This is an automated email from the ASF dual-hosted git repository.
archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit ab31236905d6728b85f8d38600a61a6866f0049e
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Nov 20 14:07:04 2022 +0800
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 <xi...@xiaomi.com>
---
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);