diff --git a/examples/pwm/pwm_main.c b/examples/pwm/pwm_main.c index 473863d68..65777f973 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 @@ -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