You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/12/06 15:03:25 UTC

[incubator-nuttx] 06/18: arch/x86_64/src/common/up_assert.c: Avoid assuming how _alert is expanded

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit d11bcef391a5d81a93e22f459bc13c4d3d5a0c24
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Sun Nov 22 15:28:49 2020 +0900

    arch/x86_64/src/common/up_assert.c: Avoid assuming how _alert is expanded
---
 arch/x86_64/src/common/up_assert.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86_64/src/common/up_assert.c b/arch/x86_64/src/common/up_assert.c
index 8e76edc..6cc87a1 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