sock: add missing format specifier to log_message()

This commit is contained in:
Anton Khirnov 2020-08-26 12:31:33 +02:00 committed by rofl0r
parent f7c616d2b9
commit 2b49ef0e0f

View File

@ -68,7 +68,7 @@ bind_socket (int sockfd, const char *addr, int family)
n = getaddrinfo (addr, NULL, &hints, &res);
if (n != 0) {
log_message (LOG_INFO,
"bind_socket: getaddrinfo failed for %s: ", addr, get_gai_error (n));
"bind_socket: getaddrinfo failed for %s: %s", addr, get_gai_error (n));
return -1;
}