[TD-13761]<fix>: redefine dir api.

This commit is contained in:
afwerar 2022-03-09 17:52:59 +08:00
parent 5afb3e2c00
commit 031b50ff76
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}