arch/arm: Fix formatting in arch/arm/core/fatal esf_dump

arch/arm/core/fatal: fix formatting in esf_dump

Signed-off-by: Andrew Fernandes <andrew@fernandes.org>
This commit is contained in:
Andrew Fernandes 2019-11-15 15:19:40 -08:00 committed by Carles Cufí
commit d52ba5102a

View file

@ -25,14 +25,14 @@ static void esf_dump(const z_arch_esf_t *esf)
LOG_ERR(" xpsr: 0x%08x", esf->basic.xpsr); LOG_ERR(" xpsr: 0x%08x", esf->basic.xpsr);
#if defined(CONFIG_FLOAT) && defined(CONFIG_FP_SHARING) #if defined(CONFIG_FLOAT) && defined(CONFIG_FP_SHARING)
for (int i = 0; i < 16; i += 4) { for (int i = 0; i < 16; i += 4) {
LOG_ERR("s[%d]: 0x%08x s[%d]: 0x%08x" LOG_ERR("s[%2d]: 0x%08x s[%2d]: 0x%08x"
" s[%d]: 0x%08x s[%d]: 0x%08x\n", " s[%2d]: 0x%08x s[%2d]: 0x%08x",
i, (u32_t)esf->s[i], i, (u32_t)esf->s[i],
i + 1, (u32_t)esf->s[i + 1], i + 1, (u32_t)esf->s[i + 1],
i + 2, (u32_t)esf->s[i + 2], i + 2, (u32_t)esf->s[i + 2],
i + 3, (u32_t)esf->s[i + 3]); i + 3, (u32_t)esf->s[i + 3]);
} }
LOG_ERR("fpscr: 0x%08x\n", esf->fpscr); LOG_ERR("fpscr: 0x%08x", esf->fpscr);
#endif #endif
LOG_ERR("Faulting instruction address (r15/pc): 0x%08x", LOG_ERR("Faulting instruction address (r15/pc): 0x%08x",
esf->basic.pc); esf->basic.pc);