]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
_dbus_listen_tcp_socket: correct format string
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 7 Oct 2016 18:00:43 +0000 (19:00 +0100)
committerSimon McVittie <smcv@debian.org>
Thu, 13 Oct 2016 21:44:12 +0000 (22:44 +0100)
res is an integer, not a string.

Bug found by adding more _DBUS_GNUC_PRINTF attributes.

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
dbus/dbus-sysdeps-unix.c

index 106a12ba0dc2bf3b39fed40c74452010364e6744..377e9e278422d983f8f486b39146fcbc41b086bd 100644 (file)
@@ -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;
                 }