From 031b50ff764ca2233b9a8dadbd5d12e6f4e9ea99 Mon Sep 17 00:00:00 2001 From: afwerar <1296468573@qq.com> Date: Wed, 9 Mar 2022 17:52:59 +0800 Subject: [PATCH] [TD-13761]: redefine dir api. --- source/os/src/osSocket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/os/src/osSocket.c b/source/os/src/osSocket.c index 9330cb7b32..24db2d7c5f 100644 --- a/source/os/src/osSocket.c +++ b/source/os/src/osSocket.c @@ -809,7 +809,7 @@ int32_t taosGetFqdn(char *fqdn) { char hostname[1024]; hostname[1023] = '\0'; if (gethostname(hostname, 1023) == -1) { - // printf("failed to get hostname, reason:%s", strerror(errno)); + printf("failed to get hostname, reason:%s", strerror(errno)); return -1; } @@ -826,7 +826,7 @@ int32_t taosGetFqdn(char *fqdn) { #endif // __APPLE__ int32_t ret = getaddrinfo(hostname, NULL, &hints, &result); if (!result) { - // printf("failed to get fqdn, code:%d, reason:%s", ret, gai_strerror(ret)); + printf("failed to get fqdn, code:%d, reason:%s", ret, gai_strerror(ret)); return -1; } -- GitLab