net: Convert DEBUGASSERT(false) into more intuitive DEBUGPANIC()
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
parent
ea0f60cc24
commit
3948736c41
4 changed files with 4 additions and 4 deletions
|
@ -343,7 +343,7 @@ int usrsock_accept(FAR struct socket *psock, FAR struct sockaddr *addr,
|
|||
else
|
||||
{
|
||||
nerr("net_timedwait errno: %d\n", ret);
|
||||
DEBUGASSERT(false);
|
||||
DEBUGPANIC();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -985,7 +985,7 @@ static int usrsockdev_close(FAR struct file *filep)
|
|||
if (ret != -ETIMEDOUT && ret != -EINTR)
|
||||
{
|
||||
ninfo("net_timedwait errno: %d\n", ret);
|
||||
DEBUGASSERT(false);
|
||||
DEBUGPANIC();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
@ -342,7 +342,7 @@ ssize_t usrsock_recvmsg(FAR struct socket *psock, FAR struct msghdr *msg,
|
|||
else
|
||||
{
|
||||
nerr("net_timedwait errno: %zd\n", ret);
|
||||
DEBUGASSERT(false);
|
||||
DEBUGPANIC();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -323,7 +323,7 @@ ssize_t usrsock_sendmsg(FAR struct socket *psock,
|
|||
else
|
||||
{
|
||||
nerr("net_timedwait errno: %zd\n", ret);
|
||||
DEBUGASSERT(false);
|
||||
DEBUGPANIC();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue