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 2020/11/28 05:38:56 UTC

[incubator-nuttx] 03/24: boards/arm/stm32/stm32f334-disco/src/stm32_smps.c: Fix syslog formats

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

commit 751f465b16c2dbe6cbb9a3bb20141db73a608395
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Fri Nov 27 21:42:52 2020 +0900

    boards/arm/stm32/stm32f334-disco/src/stm32_smps.c: Fix syslog formats
---
 boards/arm/stm32/stm32f334-disco/src/stm32_smps.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/boards/arm/stm32/stm32f334-disco/src/stm32_smps.c b/boards/arm/stm32/stm32f334-disco/src/stm32_smps.c
index 1960452..05297e3 100644
--- a/boards/arm/stm32/stm32f334-disco/src/stm32_smps.c
+++ b/boards/arm/stm32/stm32f334-disco/src/stm32_smps.c
@@ -28,6 +28,7 @@
 #include <sys/ioctl.h>
 #include <sys/types.h>
 
+#include <inttypes.h>
 #include <stdint.h>
 #include <stdbool.h>
 #include <stdlib.h>
@@ -438,7 +439,8 @@ static int smps_start(FAR struct smps_dev_s *dev)
   per = fclk / TIMA_PWM_FREQ;
   if (per > HRTIM_PER_MAX)
     {
-      pwrerr("ERROR:  Can not achieve tima pwm freq=%u if fclk=%llu\n",
+      pwrerr("ERROR:  Can not achieve tima pwm "
+             "freq=%" PRIu32 " if fclk=%" PRIu64 "\n",
              (uint32_t)TIMA_PWM_FREQ, (uint64_t)fclk);
       ret = -EINVAL;
       goto errout;
@@ -454,7 +456,8 @@ static int smps_start(FAR struct smps_dev_s *dev)
   per = fclk / TIMB_PWM_FREQ;
   if (per > HRTIM_PER_MAX)
     {
-      pwrerr("ERROR:  Can not achieve timb pwm freq=%u if fclk=%llu\n",
+      pwrerr("ERROR:  Can not achieve timb pwm "
+             "freq=%" PRIu32 " if fclk=%" PRIu64 "\n",
              (uint32_t)TIMB_PWM_FREQ, (uint64_t)fclk);
       ret = -EINVAL;
       goto errout;