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.git
commit c55cdc8a423925749c0cd8d3ab75a5bbf968e3cd Author: YAMAMOTO Takashi <yamam...@midokura.com> AuthorDate: Fri Nov 27 17:28:20 2020 +0900 arch/arm/src/stm32/stm32l15xx_flash.c: Fix a syslog format --- arch/arm/src/stm32/stm32l15xx_flash.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/src/stm32/stm32l15xx_flash.c b/arch/arm/src/stm32/stm32l15xx_flash.c index 28daa43..3509dc9 100644 --- a/arch/arm/src/stm32/stm32l15xx_flash.c +++ b/arch/arm/src/stm32/stm32l15xx_flash.c @@ -52,6 +52,7 @@ #include <nuttx/arch.h> #include <nuttx/semaphore.h> +#include <inttypes.h> #include <stdbool.h> #include <assert.h> #include <errno.h> @@ -564,7 +565,8 @@ out: if (ret != OK) { - ferr("flash write error: %d, status: 0x%x\n", ret, getreg32(STM32_FLASH_SR)); + ferr("flash write error: %d, status: 0x%" PRIx32 "\n", + ret, getreg32(STM32_FLASH_SR)); modifyreg32(STM32_FLASH_SR, 0, FLASH_SR_ALLERRS); }