usrsock: Output the log if usrsock_request return error

Signed-off-by: liangchaozhong <liangchaozhong@xiaomi.com>
This commit is contained in:
liangchaozhong 2022-10-31 15:53:43 +08:00 committed by Masayuki Ishikawa
parent cc940e8f69
commit 7e80879f88
1 changed files with 4 additions and 0 deletions

View File

@ -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. */