diff --git a/arch/x86_64/src/common/up_assert.c b/arch/x86_64/src/common/up_assert.c index 8e76edc63b6..6cc87a13dbb 100644 --- a/arch/x86_64/src/common/up_assert.c +++ b/arch/x86_64/src/common/up_assert.c @@ -250,7 +250,7 @@ void up_assert(const char *filename, int lineno) board_autoled_on(LED_ASSERTION); -#if CONFIG_TASK_NAME_SIZE > 0 +#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_DEBUG_ALERT) _alert("Assertion failed at file:%s line: %d task: %s\n", filename, lineno, rtcb->name); #else