mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
arch: Fix rtcb can't found error
use the same condition check in declaration and reference Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I7b05316e914708fceeddac394d784ee3720a3c1b
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
3204c75c1d
commit
98b5724b59
@@ -359,10 +359,6 @@ static void _up_assert(void)
|
||||
|
||||
void up_assert(const char *filename, int lineno)
|
||||
{
|
||||
#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_DEBUG_ALERT)
|
||||
struct tcb_s *rtcb = running_task();
|
||||
#endif
|
||||
|
||||
board_autoled_on(LED_ASSERTION);
|
||||
|
||||
/* Flush any buffered SYSLOG data (from prior to the assertion) */
|
||||
@@ -371,7 +367,7 @@ void up_assert(const char *filename, int lineno)
|
||||
|
||||
#if CONFIG_TASK_NAME_SIZE > 0
|
||||
_alert("Assertion failed at file:%s line: %d task: %s\n",
|
||||
filename, lineno, rtcb->name);
|
||||
filename, lineno, running_task()->name);
|
||||
#else
|
||||
_alert("Assertion failed at file:%s line: %d\n",
|
||||
filename, lineno);
|
||||
|
||||
Reference in New Issue
Block a user