[debug] Use %p to print pointers

Fixes https://github.com/harfbuzz/harfbuzz/issues/640
This commit is contained in:
Behdad Esfahbod 2017-12-05 13:12:11 -08:00
parent 353cc6fbf0
commit 03b7a221f7
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ _hb_debug_msg_va (const char *what,
fprintf (stderr, "%-10s", what ? what : "");
if (obj)
fprintf (stderr, "(%0*lx) ", (unsigned int) (2 * sizeof (void *)), (unsigned long) obj);
fprintf (stderr, "(%*p) ", (unsigned int) (2 * sizeof (void *)), obj);
else
fprintf (stderr, " %*s ", (unsigned int) (2 * sizeof (void *)), "");