mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 12:33:27 +08:00
arch/x86_64/src/common/up_assert.c: Avoid assuming how _alert is expanded
This commit is contained in:
committed by
Xiang Xiao
parent
97b86d5848
commit
d11bcef391
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user