boards/arm/stm32/nucleo-f334r8/src/stm32_spwm.c: Fix a printf format warning
This commit is contained in:
parent
87f73862fd
commit
ec25462668
@ -24,6 +24,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <strings.h>
|
||||
@ -453,8 +454,8 @@ static int slaves_configure(FAR struct spwm_s *spwm)
|
||||
per = fclk / CONFIG_NUCLEOF334R8_SPWM_PWM_FREQ;
|
||||
if (per > HRTIM_PER_MAX)
|
||||
{
|
||||
printf("ERROR: can not achieve pwm freq=%llu if fclk=%llu\n",
|
||||
CONFIG_NUCLEOF334R8_SPWM_PWM_FREQ, fclk);
|
||||
printf("ERROR: can not achieve pwm freq=%ju if fclk=%llu\n",
|
||||
(uintmax_t)CONFIG_NUCLEOF334R8_SPWM_PWM_FREQ, fclk);
|
||||
ret = -EINVAL;
|
||||
goto errout;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user