local_sendpacket.c:setting "EAGAIN" not as a error level

Signed-off-by: wangchen <wangchen41@xiaomi.com>
This commit is contained in:
wangchen 2024-03-14 20:48:18 +08:00 committed by Alan Carvalho de Assis
parent 7050c312df
commit 931029b9cb
1 changed files with 5 additions and 1 deletions

View File

@ -182,8 +182,12 @@ int local_send_packet(FAR struct file *filep, FAR const struct iovec *buf,
{
ret = local_fifo_write(filep, iov->iov_base, iov->iov_len);
if (ret < 0)
{
if (ret != -EAGAIN)
{
nerr("ERROR: local send packet failed ret: %d\n", ret);
}
break;
}