Sfoglia il codice sorgente

【调整】NTP 错误日志细节格式。

Signed-off-by: armink <armink.ztl@gmail.com>
armink 7 anni fa
parent
commit
6fa317028d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      ntp/ntp.c

+ 1 - 1
ntp/ntp.c

@@ -180,7 +180,7 @@ time_t ntp_get_time(const char *host_name)
     FD_SET(sockfd, &readset);
 
     if (select(sockfd + 1, &readset, RT_NULL, RT_NULL, &timeout) <= 0) {
-        ntp_error("select the socket timeout(10s)");
+        ntp_error("select the socket timeout(%ds)", NTP_GET_TIMEOUT);
         goto __exit;
     }