This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 169d938de30675205658f9577b02a5c2ca4b0308 Author: Bowen Wang <[email protected]> AuthorDate: Wed Jun 11 17:22:42 2025 +0800 vsock/vsock_sockif: fix compile error in vsock framework Add the missing ret argument to the vsock error logs to fix the build warnings. Signed-off-by: Bowen Wang <[email protected]> --- net/vsock/vsock_sockif.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/vsock/vsock_sockif.c b/net/vsock/vsock_sockif.c index 0f4fd5f8844..c10b44b3844 100644 --- a/net/vsock/vsock_sockif.c +++ b/net/vsock/vsock_sockif.c @@ -547,7 +547,7 @@ static FAR struct vsock_conn_s *vsock_alloc(void) if (ret < 0) { kmm_free(conn); - vrterr("circbuf_init failed\n"); + vrterr("circbuf_init failed %d\n", ret); return NULL; } @@ -1023,7 +1023,7 @@ static int vsock_send_pkt(FAR struct vsock_conn_s *conn, vsock_restorelock(conn, rxcount, txcount); if (ret < 0) { - vrterr("Alloc pkt and buffer failed%d\n"); + vrterr("Alloc pkt and buffer failed %d\n", ret); return ret; } @@ -2013,7 +2013,7 @@ static ssize_t vsock_sendmsg(FAR struct socket *psock, if (ret < 0) { - vrterr("vsock_sendmsg: tx_credit timeout\n"); + vrterr("vsock_sendmsg: tx_credit timeout %d\n", ret); break; } }
