dbus-transport-socket: Correctly print DBusSocket with DBUS_SOCKET_FORMAT
authorRalf Habacker <ralf.habacker@freenet.de>
Wed, 21 Mar 2018 18:29:44 +0000 (19:29 +0100)
committerSimon McVittie <smcv@collabora.com>
Thu, 4 Oct 2018 10:19:21 +0000 (11:19 +0100)
Previously, on 64-bit Windows we were passing a 32-bit int where the
format string expects a 64-bit SOCKET.

Reviewed-by: Simon McVittie <smcv@collabora.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=105662
(cherry picked from commit 18d4ff664491c17664b9f88c06d9338cd3750120)

dbus/dbus-transport-socket.c

index 05acde0..7389650 100644 (file)
@@ -1026,7 +1026,7 @@ socket_handle_watch (DBusTransport *transport,
                        flags);
       else
         _dbus_verbose ("asked to handle watch %p on fd %" DBUS_SOCKET_FORMAT " that we don't recognize\n",
-                       watch, dbus_watch_get_socket (watch));
+                       watch, _dbus_socket_printable (_dbus_watch_get_socket (watch)));
     }
 #endif /* DBUS_ENABLE_VERBOSE_MODE */