Fixed wrong output information

This commit is contained in:
David Lin
2020-03-02 08:44:29 +08:00
committed by GitHub
parent f751379338
commit 06b7aea567

View File

@@ -40,7 +40,7 @@ __QCLOUD_OSAL__ int osal_udp_connect(const char *host, uint16_t port)
hints.ai_family = AF_INET; hints.ai_family = AF_INET;
hints.ai_protocol = IPPROTO_UDP; hints.ai_protocol = IPPROTO_UDP;
QCLOUD_LOG_D("establish tcp connection with server(host=%s port=%s)", host, port_str); QCLOUD_LOG_D("establish udp connection with server(host=%s port=%s)", host, port_str);
if (getaddrinfo(host, port_str, &hints, &addr_list) != 0) { if (getaddrinfo(host, port_str, &hints, &addr_list) != 0) {
QCLOUD_LOG_E("getaddrinfo error,errno:%s", strerror(errno)); QCLOUD_LOG_E("getaddrinfo error,errno:%s", strerror(errno));