arch/arm/src/stm32/stm32l15xx_flash.c: Fix a syslog format

This commit is contained in:
YAMAMOTO Takashi 2020-11-27 17:28:20 +09:00 committed by Xiang Xiao
parent e2ec8e974c
commit c55cdc8a42

View File

@ -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);
}