You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ma...@apache.org on 2023/01/28 07:27:28 UTC
[nuttx] 02/02: usrsock: Output the log if usrsock_request return error
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 <li...@xiaomi.com>
AuthorDate: Mon Oct 31 15:53:43 2022 +0800
usrsock: Output the log if usrsock_request return error
Signed-off-by: liangchaozhong <li...@xiaomi.com>
---
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. */