local_recvmsg.c:setting "EAGAIN" not as a warning level

Signed-off-by: wangchen <wangchen41@xiaomi.com>
This commit is contained in:
wangchen 2024-04-03 12:53:35 +08:00 committed by Alan Carvalho de Assis
parent 931029b9cb
commit 622302fe02

View File

@ -110,11 +110,7 @@ static int psock_fifo_read(FAR struct socket *psock, FAR void *buf,
}
else
{
if (ret == -EAGAIN)
{
nwarn("WARNING: Failed to read packet: %d\n", ret);
}
else
if (ret != -EAGAIN)
{
nerr("ERROR: Failed to read packet: %d\n", ret);
}