From 32b1af30088bbbf879ae46db27d0f9198f503dbd Mon Sep 17 00:00:00 2001 From: zhanghongyu Date: Thu, 24 Aug 2023 21:10:34 +0800 Subject: [PATCH] tcp_send_buffered: change Not connected message level from error to warning Non-blocking sockets are almost never in the connected state when app try to get result of connect success through poll, to avoid confusion because of this error print, so downgrade the print level to warning. Signed-off-by: zhanghongyu --- net/tcp/tcp_send_buffered.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/tcp/tcp_send_buffered.c b/net/tcp/tcp_send_buffered.c index 4b6f4ba53b..8c480a231f 100644 --- a/net/tcp/tcp_send_buffered.c +++ b/net/tcp/tcp_send_buffered.c @@ -1663,7 +1663,7 @@ int psock_tcp_cansend(FAR struct tcp_conn_s *conn) if (!_SS_ISCONNECTED(conn->sconn.s_flags)) { - nerr("ERROR: Not connected\n"); + nwarn("WARNING: Not connected\n"); return -ENOTCONN; }