dbus-transport-socket: Correctly print DBusSocket with DBUS_SOCKET_FORMAT

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 18d4ff6644)
This commit is contained in:
Ralf Habacker 2018-03-21 19:29:44 +01:00 committed by Simon McVittie
parent ece958ce9c
commit cface8bb16

View 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 */