dbus-file-win: print a HANDLE correctly
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 7 Oct 2016 18:27:50 +0000 (19:27 +0100)
committerSimon McVittie <smcv@debian.org>
Thu, 13 Oct 2016 21:44:12 +0000 (22:44 +0100)
HANDLEs are pointers, not integers.

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

index 0dbe11e..bdd0dcf 100644 (file)
@@ -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;
     }