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:56 UTC
[incubator-nuttx] 07/08: libs: 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 9b0e3ae9d2d3f0f58853a9352a91e52c5e75602e
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Wed Jul 13 17:48:02 2022 -0300
libs: Convert DEBUGASSERT(false) into more intuitive DEBUGPANIC()
Signed-off-by: Gustavo Henrique Nihei <gu...@espressif.com>
---
libs/libc/netdb/lib_getnameinfo.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libs/libc/netdb/lib_getnameinfo.c b/libs/libc/netdb/lib_getnameinfo.c
index 1b16d7a399..333a335e15 100644
--- a/libs/libc/netdb/lib_getnameinfo.c
+++ b/libs/libc/netdb/lib_getnameinfo.c
@@ -135,7 +135,7 @@ int getnameinfo(FAR const struct sockaddr *addr, socklen_t addrlen,
break;
default:
- DEBUGASSERT(0);
+ DEBUGPANIC();
}
/* Fall-back to numeric for the host name. */
@@ -154,7 +154,7 @@ int getnameinfo(FAR const struct sockaddr *addr, socklen_t addrlen,
return EAI_OVERFLOW;
default:
- DEBUGASSERT(0);
+ DEBUGPANIC();
}
}
}