From 2b49ef0e0f653eec6a128050c12ae8f7d630b1af Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 26 Aug 2020 12:31:33 +0200 Subject: [PATCH] sock: add missing format specifier to log_message() --- src/sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sock.c b/src/sock.c index 983c4ea..28a7f88 100644 --- a/src/sock.c +++ b/src/sock.c @@ -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; }