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 <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-20 14:07:04 +08:00 committed by archer
parent ea171d6e5d
commit ab31236905

View File

@ -476,8 +476,8 @@ static int stm32_settimeout(struct timer_lowerhalf_s *lower,
period = (uint32_t) timeout; period = (uint32_t) timeout;
} }
tmrinfo(" clock=%lu period=%lu maxtimeout=%lu\n", clock, period, tmrinfo(" clock=%" PRIu32 " period=%" PRIu32 " maxtimeout=%" PRIu32 "\n",
(uint32_t)maxtimeout); clock, period, (uint32_t)maxtimeout);
STM32_TIM_SETCLOCK(priv->tim, clock); STM32_TIM_SETCLOCK(priv->tim, clock);
STM32_TIM_SETPERIOD(priv->tim, period); STM32_TIM_SETPERIOD(priv->tim, period);