arch/arm/src/armv7-m/arm_assert.c: Don't assume debug macro expansion

This commit is contained in:
YAMAMOTO Takashi 2020-11-26 19:34:50 +09:00 committed by Xiang Xiao
parent 330aa43f72
commit c3791e7c23

View File

@ -398,7 +398,7 @@ void up_assert(const char *filename, int lineno)
syslog_flush();
#ifdef CONFIG_SMP
#if CONFIG_TASK_NAME_SIZE > 0
#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_DEBUG_ALERT)
_alert("Assertion failed CPU%d at file:%s line: %d task: %s\n",
up_cpu_index(), filename, lineno, rtcb->name);
#else
@ -406,7 +406,7 @@ void up_assert(const char *filename, int lineno)
up_cpu_index(), filename, lineno);
#endif
#else
#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