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 <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu 2023-08-24 21:10:34 +08:00 committed by Petro Karashchenko
parent 3dbface167
commit 32b1af3008
1 changed files with 1 additions and 1 deletions

View File

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