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/07/04 04:33:50 UTC

[incubator-nuttx] 02/04: boards: cxd56xx: Fix some printf format warnings

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 6f78544fd9cde6a3fa6c6625acf435ed5e73ef31
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Sun Jul 4 12:28:07 2021 +0900

    boards: cxd56xx: Fix some printf format warnings
    
    Fix some warnings by -Wformat.
---
 boards/arm/cxd56xx/spresense/src/cxd56_pwm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/boards/arm/cxd56xx/spresense/src/cxd56_pwm.c b/boards/arm/cxd56xx/spresense/src/cxd56_pwm.c
index d211c62..ebcf01a 100644
--- a/boards/arm/cxd56xx/spresense/src/cxd56_pwm.c
+++ b/boards/arm/cxd56xx/spresense/src/cxd56_pwm.c
@@ -60,13 +60,13 @@ static int pwm_initialize(uint32_t channel)
   pwm = cxd56_pwminitialize(channel);
   if (!pwm)
     {
-      pwmerr("Failed to get the CXD56 PWM%d lower half\n", channel);
+      pwmerr("Failed to get the CXD56 PWM%ld lower half\n", channel);
       return -ENODEV;
     }
 
   /* Register the PWM driver at "/dev/pwmX" */
 
-  snprintf(devname, sizeof(devname), "/dev/pwm%d", channel);
+  snprintf(devname, sizeof(devname), "/dev/pwm%ld", channel);
   ret = pwm_register(devname, pwm);
   if (ret < 0)
     {