a-lunev commented on a change in pull request #5373:
URL: https://github.com/apache/incubator-nuttx/pull/5373#discussion_r795741229
##########
File path: net/tcp/tcp_send_buffered.c
##########
@@ -376,6 +376,29 @@ static uint16_t psock_send_eventhandler(FAR struct
net_driver_s *dev,
conn = psock->s_conn;
DEBUGASSERT(conn != NULL);
+#ifdef CONFIG_DEBUG_NET_ERROR
+ if (conn->dev == NULL || (pvconn != conn && pvconn != NULL))
+ {
+ nerr("ERROR: conn->dev == NULL or pvconn != conn:"
+ " dev=%p pvconn=%p pvpriv=%p flags=0x%04x"
Review comment:
This "if" condition is temporary and is going to be removed as soon as
the issue investigation is finished. So I do not think it is reasonable to
unify / organize some new file for it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]