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:35 UTC

[incubator-nuttx] 16/18: arch/arm/src/arm/arm_assert.c: Don't assume debug macro expansion

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 b18c2e6cc5b0f146dd6578d6db81d6bba7f89edc
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Fri Nov 27 13:32:29 2020 +0900

    arch/arm/src/arm/arm_assert.c: Don't assume debug macro expansion
---
 arch/arm/src/arm/arm_assert.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/src/arm/arm_assert.c b/arch/arm/src/arm/arm_assert.c
index 4957af5..0db0c41 100644
--- a/arch/arm/src/arm/arm_assert.c
+++ b/arch/arm/src/arm/arm_assert.c
@@ -332,7 +332,7 @@ void up_assert(const char *filename, int lineno)
 
   syslog_flush();
 
-#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