diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-25 11:45:00 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-25 11:45:00 -0600 |
commit | c9b18b049b09580260188349bb32e91b59f74965 (patch) | |
tree | 14929ed18bf0cfc14d32d78825b3f3a47ae7d589 /apps/examples/pwm | |
parent | b756c4b51f51427339bf3649430f8470f64d7a8d (diff) | |
download | px4-nuttx-c9b18b049b09580260188349bb32e91b59f74965.tar.gz px4-nuttx-c9b18b049b09580260188349bb32e91b59f74965.tar.bz2 px4-nuttx-c9b18b049b09580260188349bb32e91b59f74965.zip |
More fixes to issues noted by cppcheck
Diffstat (limited to 'apps/examples/pwm')
-rw-r--r-- | apps/examples/pwm/pwm_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/examples/pwm/pwm_main.c b/apps/examples/pwm/pwm_main.c index e9a6cc50e..ba5687541 100644 --- a/apps/examples/pwm/pwm_main.c +++ b/apps/examples/pwm/pwm_main.c @@ -124,14 +124,14 @@ static void pwm_help(FAR struct pwm_state_s *pwm) "Default: %s Current: %s\n", CONFIG_EXAMPLES_PWM_DEVPATH, pwm->devpath ? pwm->devpath : "NONE"); printf(" [-f frequency] selects the pulse frequency. " - "Default: %d Hz Current: %d Hz\n", + "Default: %d Hz Current: %u Hz\n", CONFIG_EXAMPLES_PWM_FREQUENCY, pwm->freq); printf(" [-d duty] selects the pulse duty as a percentage. " "Default: %d %% Current: %d %%\n", CONFIG_EXAMPLES_PWM_DUTYPCT, pwm->duty); #ifdef CONFIG_PWM_PULSECOUNT printf(" [-n count] selects the pulse count. " - "Default: %d Current: %d\n", + "Default: %d Current: %u\n", CONFIG_EXAMPLES_PWM_PULSECOUNT, pwm->count); #endif printf(" [-t duration] is the duration of the pulse train in seconds. " @@ -336,11 +336,11 @@ int pwm_main(int argc, char *argv[]) #ifdef CONFIG_PWM_PULSECOUNT info.count = g_pwmstate.count; - printf("pwm_main: starting output with frequency: %d duty: %08x count: %d\n", + printf("pwm_main: starting output with frequency: %u duty: %08x count: %u\n", info.frequency, info.duty, info.count); #else - printf("pwm_main: starting output with frequency: %d duty: %08x\n", + printf("pwm_main: starting output with frequency: %u duty: %08x\n", info.frequency, info.duty); #endif |