arch/arm/src/armv7-m/arm_hardfault.c: Fix a syslog format

This commit is contained in:
YAMAMOTO Takashi 2020-11-26 09:20:57 +09:00 committed by Xiang Xiao
parent 458d84454a
commit 34a31ea1e5

View File

@ -24,6 +24,7 @@
#include <nuttx/config.h>
#include <inttypes.h>
#include <stdint.h>
#include <string.h>
#include <assert.h>
@ -130,7 +131,7 @@ int arm_hardfault(int irq, FAR void *context, FAR void *arg)
getreg32(NVIC_AFAULTS));
up_irq_save();
_alert("PANIC!!! Hard fault: %08x\n", getreg32(NVIC_HFAULTS));
_alert("PANIC!!! Hard fault: %08" PRIx32 "\n", getreg32(NVIC_HFAULTS));
PANIC();
return OK;
}