diff --git a/core/panic.c b/core/panic.c index d8ecd5867e..c1f3c1f581 100644 --- a/core/panic.c +++ b/core/panic.c @@ -48,13 +48,13 @@ NORETURN void core_panic(core_panic_t crash_code, const char *message) if (crashed == 0) { /* print panic message to console (if possible) */ crashed = 1; - puts("*** RIOT kernel panic"); - puts(message); #ifndef NDEBUG if (crash_code == PANIC_ASSERT_FAIL) { cpu_print_last_instruction(); } #endif + puts("*** RIOT kernel panic"); + puts(message); #ifdef DEVELHELP #ifdef MODULE_PS ps();