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
+5 -1
View File
@@ -183,7 +183,11 @@ 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)
{
nerr("ERROR: local send packet failed ret: %d\n", ret);
if (ret != -EAGAIN)
{
nerr("ERROR: local send packet failed ret: %d\n", ret);
}
break;
}