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 2022/07/14 04:08:57 UTC

[incubator-nuttx] 08/08: sched: Convert DEBUGASSERT(false) into more intuitive DEBUGPANIC()

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 6f0334140f76790ab39ffdbd3ce6cfacf98fd04e
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Wed Jul 13 17:48:41 2022 -0300

    sched: Convert DEBUGASSERT(false) into more intuitive DEBUGPANIC()
    
    Signed-off-by: Gustavo Henrique Nihei <gu...@espressif.com>
---
 sched/semaphore/sem_holder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sched/semaphore/sem_holder.c b/sched/semaphore/sem_holder.c
index ec815af15a..69970f7a84 100644
--- a/sched/semaphore/sem_holder.c
+++ b/sched/semaphore/sem_holder.c
@@ -102,7 +102,7 @@ nxsem_allocholder(FAR sem_t *sem, FAR struct tcb_s *htcb)
     {
       serr("ERROR: Insufficient pre-allocated holders\n");
       pholder          = NULL;
-      DEBUGASSERT(0);
+      DEBUGPANIC();
     }
 
   if (pholder != NULL)