anchao commented on code in PR #3313:
URL: https://github.com/apache/nuttx-apps/pull/3313#discussion_r2684700794
##########
netutils/netlib/netlib_checkhttpconnectivity.c:
##########
@@ -224,7 +224,7 @@ int netlib_check_httpconnectivity(FAR const char *host,
ret = connect(sock, (struct sockaddr *)&server_addr, sizeof(server_addr));
if (ret < 0)
{
- perror("Connection failed");
+ nerr("Connection failed");
Review Comment:
`perror` is not equal to `nerr`, the `errno` should be added to the log
message, even if logging is disabled.
--
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]