net: 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 14:35:21 -03:00 committed by Xiang Xiao
parent ea0f60cc24
commit 3948736c41
4 changed files with 4 additions and 4 deletions

View file

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

View file

@ -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

View file

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

View file

@ -323,7 +323,7 @@ ssize_t usrsock_sendmsg(FAR struct socket *psock,
else
{
nerr("net_timedwait errno: %zd\n", ret);
DEBUGASSERT(false);
DEBUGPANIC();
}
}