From 00ce2d4b6521865f5abefa83053c162f0e580fe4 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 7 Oct 2016 19:27:50 +0100 Subject: [PATCH 06/13] dbus-file-win: print a HANDLE correctly HANDLEs are pointers, not integers. Signed-off-by: Simon McVittie --- dbus/dbus-file-win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus/dbus-file-win.c b/dbus/dbus-file-win.c index 0dbe11e..bdd0dcf 100644 --- a/dbus/dbus-file-win.c +++ b/dbus/dbus-file-win.c @@ -73,7 +73,7 @@ _dbus_file_read (HANDLE hnd, { char *emsg = _dbus_win_error_string (GetLastError ()); dbus_set_error (error, _dbus_win_error_from_last_error (), - "Failed to read from 0x%x: %s", hnd, emsg); + "Failed to read from %p: %s", hnd, emsg); _dbus_win_free_error_string (emsg); return -1; } -- 2.9.3