libs: Convert DEBUGASSERT(false) into more intuitive DEBUGPANIC()

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei 2022-07-13 17:48:02 -03:00 committed by Xiang Xiao
parent 83442aa70c
commit 9b0e3ae9d2

View file

@ -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();
}
}
}