You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/12/10 18:30:34 UTC

[incubator-nuttx] branch master updated: arch/arm/src/stm32l4/stm32l4_pwm.c: fix printf format

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new a35d205  arch/arm/src/stm32l4/stm32l4_pwm.c: fix printf format
a35d205 is described below

commit a35d205f3be6637bff5d0e0b3763f4589335a76e
Author: Juha Niskanen <ju...@haltian.com>
AuthorDate: Fri Dec 10 17:50:39 2021 +0200

    arch/arm/src/stm32l4/stm32l4_pwm.c: fix printf format
    
    Signed-off-by: Juha Niskanen <ju...@haltian.com>
---
 arch/arm/src/stm32l4/stm32l4_pwm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/src/stm32l4/stm32l4_pwm.c b/arch/arm/src/stm32l4/stm32l4_pwm.c
index b8a33c6..4209eff 100644
--- a/arch/arm/src/stm32l4/stm32l4_pwm.c
+++ b/arch/arm/src/stm32l4/stm32l4_pwm.c
@@ -3166,7 +3166,7 @@ static int pwm_timer(FAR struct pwm_lowerhalf_s *dev,
   DEBUGASSERT(priv != NULL && info != NULL);
 
 #if defined(CONFIG_STM32L4_PWM_MULTICHAN)
-  pwminfo("TIM%u frequency: %u\n",
+  pwminfo("TIM%u frequency: %" PRIu32 "\n",
           priv->timid, info->frequency);
 #else
   pwminfo("TIM%u channel: %u frequency: %" PRIu32 " duty: %08" PRIx32 "\n",