From a7ab9d182c202a78f810d38afa7dd34c83708325 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 7 Oct 2016 19:00:43 +0100 Subject: [PATCH 01/13] _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 106a12b..377e9e2 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; } -- 2.9.3