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:
parent
3dbface167
commit
32b1af3008
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue