core: make assertions easier to spot

This commit is contained in:
Oleg Hahm 2015-11-27 18:08:59 +01:00
parent 98bd5ee09c
commit d86f1af34b

View File

@ -35,7 +35,7 @@
#include "ps.h" #include "ps.h"
#endif #endif
const char assert_crash_message[] = "Failed assertion."; const char assert_crash_message[] = "FAILED ASSERTION.";
/* flag preventing "recursive crash printing loop" */ /* flag preventing "recursive crash printing loop" */
static int crashed = 0; static int crashed = 0;
@ -53,8 +53,9 @@ NORETURN void core_panic(core_panic_t crash_code, const char *message)
cpu_print_last_instruction(); cpu_print_last_instruction();
} }
#endif #endif
puts("*** RIOT kernel panic"); puts("*** RIOT kernel panic:");
puts(message); puts(message);
puts("");
#ifdef DEVELHELP #ifdef DEVELHELP
#ifdef MODULE_PS #ifdef MODULE_PS
ps(); ps();