arch/arm/src/nrf52/nrf52_pwm.c: Fix syslog formats

This commit is contained in:
YAMAMOTO Takashi 2020-11-28 09:28:32 +09:00 committed by Xiang Xiao
parent b22ad6fbb8
commit cad0486342

View File

@ -24,6 +24,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <inttypes.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
@ -298,7 +299,7 @@ static int nrf52_pwm_duty(FAR struct nrf52_pwm_s *priv, uint8_t chan,
DEBUGASSERT(priv); DEBUGASSERT(priv);
pwminfo("PWM channel: %d duty: %d\n", chan, duty); pwminfo("PWM channel: %d duty: %" PRId32 "\n", chan, duty);
/* Get compare /* Get compare
* *
@ -407,7 +408,8 @@ static int nrf52_pwm_freq(FAR struct nrf52_pwm_s *priv, uint32_t freq)
priv->cntrtop = top; priv->cntrtop = top;
pwminfo("PWM frequency: %d pwm_clk: %d pwm_prescaler: %d top: %d\n", pwminfo("PWM frequency: %" PRId32 " pwm_clk: %" PRId32
" pwm_prescaler: %" PRId32 " top: %" PRId32 "\n",
freq, pwm_clk, prescaler, top); freq, pwm_clk, prescaler, top);
return ret; return ret;