Skip to content

Commit

Permalink
【修改】调整域名地址获取失败日志等级
Browse files Browse the repository at this point in the history
  • Loading branch information
enkiller committed Jun 29, 2019
1 parent b564538 commit 79a66d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ntp/ntp.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ static int sendto_ntp_server(int sockfd, const char *host_name, struct sockaddr_
socklen_t addr_len = sizeof(struct sockaddr_in);
/* NTP UDP port number. */
int portno = 123;

server = gethostbyname(host_name);
if (server == NULL)
{
LOG_W("No such host(%s)", host_name);
LOG_D("No such host(%s)", host_name);
return -RT_ERROR;
}
else
Expand Down

0 comments on commit 79a66d4

Please sign in to comment.