diff --git a/arch/sim/src/up_head.c b/arch/sim/src/up_head.c index 68f34f6e99b..f7f5374e3ca 100644 --- a/arch/sim/src/up_head.c +++ b/arch/sim/src/up_head.c @@ -113,7 +113,13 @@ void up_assert(const uint8_t *filename, int line) { /* Show the location of the failed assertion */ - fprintf(stderr, "Assertion failed at file:%s line: %d\n", filename, line); +#ifdef CONFIG_SMP + fprintf(stderr, "CPU%d: Assertion failed at file:%s line: %d\n", + up_cpundx(), filename, line); +#else + fprintf(stderr, "Assertion failed at file:%s line: %d\n", + filename, line); +#endif /* Allow for any board/configuration specific crash information */