mirror of
https://github.com/apache/nuttx.git
synced 2026-08-02 04:38:59 +00:00
arch/arm/src/stm32/stm32l15xx_flash.c: Fix a syslog format
This commit is contained in:
parent
e2ec8e974c
commit
c55cdc8a42
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue