From 15edd28a6988e646fae2507ad6474b86d1a2a4ea Mon Sep 17 00:00:00 2001 From: xucheng5 Date: Wed, 16 Aug 2023 20:16:54 +0800 Subject: [PATCH] example/capture : fixed build warning Signed-off-by: xucheng5 --- examples/capture/cap_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/capture/cap_main.c b/examples/capture/cap_main.c index 11fac3721..d584dad03 100644 --- a/examples/capture/cap_main.c +++ b/examples/capture/cap_main.c @@ -269,7 +269,7 @@ int main(int argc, FAR char *argv[]) else { - printf("pwm duty cycle: %d % \n", dutycycle); + printf("pwm duty cycle: %d %% \n", dutycycle); } /* Get the frequence data using the ioctl */ @@ -287,7 +287,7 @@ int main(int argc, FAR char *argv[]) else { - printf("pwm frequence: %d Hz \n", frequence); + printf("pwm frequence: %"PRId32" Hz \n", frequence); } /* Delay a little bit */