This is an automated email from the ASF dual-hosted git repository. masayuki pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 7e80879f8861c45d937b8d1f5ae7220f58dab3db Author: liangchaozhong <[email protected]> AuthorDate: Mon Oct 31 15:53:43 2022 +0800 usrsock: Output the log if usrsock_request return error Signed-off-by: liangchaozhong <[email protected]> --- net/usrsock/usrsock_devif.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/usrsock/usrsock_devif.c b/net/usrsock/usrsock_devif.c index d061d5ee41..ecdba77a07 100644 --- a/net/usrsock/usrsock_devif.c +++ b/net/usrsock/usrsock_devif.c @@ -665,6 +665,10 @@ int usrsock_do_request(FAR struct usrsock_conn_s *conn, net_sem_wait_uninterruptible(&req->acksem); --req->nbusy; /* net_lock held. */ } + else + { + nerr("error: usrsock request failed with %d\n", ret); + } /* Free request line for next command. */
