arch/arm/src/stm32/stm32_hrtim.c: Fix a syslog format
This commit is contained in:
parent
6b11286455
commit
08dd2251ea
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@ -5325,8 +5326,9 @@ static int hrtim_tim_freq_set(FAR struct hrtim_dev_s *dev, uint8_t timer,
|
|||||||
per = fclk / freq;
|
per = fclk / freq;
|
||||||
if (per > HRTIM_PER_MAX)
|
if (per > HRTIM_PER_MAX)
|
||||||
{
|
{
|
||||||
tmrerr("ERROR: can not achieve timer pwm freq=%u if fclk=%llu\n",
|
tmrerr("ERROR: can not achieve timer pwm "
|
||||||
(uint32_t)freq, (uint64_t)fclk);
|
"freq=%" PRIu64 " if fclk=%" PRIu64 "\n",
|
||||||
|
freq, fclk);
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
goto errout;
|
goto errout;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user