core/panic: call cpu_print_last_instruction before printing other messages

dev/timer
Cenk Gündoğan 8 years ago
parent 4b6626f8b2
commit 8aa04e82a0

@ -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();

Loading…
Cancel
Save