kernel: fatal: fix indentation in z_fatal_error
Fix indentation error in z_fatal_error(). Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
f003c8b508
commit
1c56f87321
1 changed files with 16 additions and 16 deletions
|
@ -152,26 +152,26 @@ void z_fatal_error(unsigned int reason, const z_arch_esf_t *esf)
|
||||||
} else {
|
} else {
|
||||||
/* Test mode */
|
/* Test mode */
|
||||||
#if defined(CONFIG_ARCH_HAS_NESTED_EXCEPTION_DETECTION)
|
#if defined(CONFIG_ARCH_HAS_NESTED_EXCEPTION_DETECTION)
|
||||||
if ((esf != NULL) && arch_is_in_nested_exception(esf)) {
|
if ((esf != NULL) && arch_is_in_nested_exception(esf)) {
|
||||||
/* Abort the thread only on STACK Sentinel check fail. */
|
/* Abort the thread only on STACK Sentinel check fail. */
|
||||||
#if defined(CONFIG_STACK_SENTINEL)
|
#if defined(CONFIG_STACK_SENTINEL)
|
||||||
if (reason != K_ERR_STACK_CHK_FAIL) {
|
if (reason != K_ERR_STACK_CHK_FAIL) {
|
||||||
arch_irq_unlock(key);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
arch_irq_unlock(key);
|
arch_irq_unlock(key);
|
||||||
return;
|
return;
|
||||||
#endif /* CONFIG_STACK_SENTINEL */
|
|
||||||
} else {
|
|
||||||
/* Abort the thread only if the fault is not due to
|
|
||||||
* a spurious ISR handler triggered.
|
|
||||||
*/
|
|
||||||
if (reason == K_ERR_SPURIOUS_IRQ) {
|
|
||||||
arch_irq_unlock(key);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
arch_irq_unlock(key);
|
||||||
|
return;
|
||||||
|
#endif /* CONFIG_STACK_SENTINEL */
|
||||||
|
} else {
|
||||||
|
/* Abort the thread only if the fault is not due to
|
||||||
|
* a spurious ISR handler triggered.
|
||||||
|
*/
|
||||||
|
if (reason == K_ERR_SPURIOUS_IRQ) {
|
||||||
|
arch_irq_unlock(key);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif /*CONFIG_ARCH_HAS_NESTED_EXCEPTION_DETECTION */
|
#endif /*CONFIG_ARCH_HAS_NESTED_EXCEPTION_DETECTION */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue