From a14fcb7066771787d3931c3fdc7ddf2ca0e80fcb Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 7 Oct 2016 19:00:43 +0100 Subject: [PATCH] _dbus_listen_tcp_socket: correct format string res is an integer, not a string. Bug found by adding more _DBUS_GNUC_PRINTF attributes. Signed-off-by: Simon McVittie --- dbus/dbus-sysdeps-unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c index 106a12ba..377e9e27 100644 --- a/dbus/dbus-sysdeps-unix.c +++ b/dbus/dbus-sysdeps-unix.c @@ -1609,7 +1609,7 @@ _dbus_listen_tcp_socket (const char *host, NI_NUMERICHOST | NI_NUMERICSERV)) != 0) { dbus_set_error (error, _dbus_error_from_errno (errno), - "Failed to resolve port \"%s:%s\": %s (%s)", + "Failed to resolve port \"%s:%s\": %s (%d)", host ? host : "*", port, gai_strerror(res), res); goto failed; }