csanchezdll opened a new pull request, #10841: URL: https://github.com/apache/nuttx/pull/10841
## Summary There are some format warnings in printf-linke format strings. This patch removes them. ## Impact No functional change, only affects the build process. ## Testing To show the warnings: ``` tools/configure.sh nucleo-h743zi2:nsh make menuconfig ``` Select `System Type -> Timer Configuration -> TIM one-shot wrapper` ``` make ``` Before the patch, warnings are printed: ``` chip/stm32_oneshot.c:186:11: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=] 186 | tmrinfo("chan=%d resolution=%d usec, USEC_PER_SEC:%d\n", chan, resolution, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [...] chip/stm32_oneshot.c:193:11: warning: format '%d' expects argument of type 'int', but argument 3 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=] 193 | tmrinfo("frequency: %d\n", frequency); | ^~~~~~~~~~~~~~~~~ ~~~~~~~~~ | | | uint32_t {aka long unsigned int} [...] chip/stm32_oneshot.c:229:11: warning: format '%d' expects argument of type 'int', but argument 3 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=] 229 | tmrinfo("frequency: %d, USEC_PER_SEC: %d\n", oneshot->frequency, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ | | | uint32_t {aka long unsigned int} [...] chip/stm32_oneshot.c:229:11: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=] 229 | tmrinfo("frequency: %d, USEC_PER_SEC: %d\n", oneshot->frequency, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` After this patch, those warnings are gone. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org