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

[incubator-nuttx] 03/08: mm: 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 ea0f60cc24a06f832873b264583f1f05e5d8fa42
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Wed Jul 13 14:35:07 2022 -0300

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

diff --git a/mm/mm_heap/mm_realloc.c b/mm/mm_heap/mm_realloc.c
index 7b9abe8b7a..2604099f8b 100644
--- a/mm/mm_heap/mm_realloc.c
+++ b/mm/mm_heap/mm_realloc.c
@@ -97,7 +97,7 @@ FAR void *mm_realloc(FAR struct mm_heap_s *heap, FAR void *oldmem,
     {
       /* There must have been an integer overflow */
 
-      DEBUGASSERT(false);
+      DEBUGPANIC();
       return NULL;
     }