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-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new be14592  examples/pwm: fix printf format warnings
be14592 is described below

commit be14592e842926776c748c70f2c4341ab50deafa
Author: raiden00pl <[email protected]>
AuthorDate: Mon May 31 14:06:19 2021 +0200

    examples/pwm: fix printf format warnings
---
 examples/pwm/pwm_main.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/examples/pwm/pwm_main.c b/examples/pwm/pwm_main.c
index 473863d..65777f9 100644
--- a/examples/pwm/pwm_main.c
+++ b/examples/pwm/pwm_main.c
@@ -1,5 +1,5 @@
 /****************************************************************************
- * examples/pwm/pwm_main.c
+ * apps/examples/pwm/pwm_main.c
  *
  *   Copyright (C) 2011-2012, 2015 Gregory Nutt. All rights reserved.
  *   Author: Gregory Nutt <[email protected]>
@@ -227,7 +227,7 @@ static void pwm_help(FAR struct pwm_state_s *pwm)
 #endif
 #ifdef CONFIG_PWM_PULSECOUNT
   printf("  [-n count] selects the pulse count.  "
-         "Default: %d Current: %u\n",
+         "Default: %d Current: %" PRIx32 "\n",
          CONFIG_EXAMPLES_PWM_PULSECOUNT, pwm->count);
 #endif
   printf("  [-t duration] is the duration of the pulse train in seconds.  "
@@ -512,7 +512,8 @@ int main(int argc, FAR char *argv[])
   info.count     = g_pwmstate.count;
 
   printf("pwm_main: starting output "
-         "with frequency: %" PRIu32 " duty: %08" PRIx32 " count: %u\n",
+         "with frequency: %" PRIu32 " duty: %08" PRIx32
+         " count: %" PRIx32 "\n",
          info.frequency, (uint32_t)info.duty, info.count);
 
 #  else

Reply via email to