1.1 --- a/ucx/mempool.c Fri Oct 12 12:46:54 2012 +0200 1.2 +++ b/ucx/mempool.c Sun Nov 04 20:50:12 2012 +0100 1.3 @@ -5,6 +5,7 @@ 1.4 #include <stdlib.h> 1.5 #include <string.h> 1.6 #include <stdio.h> 1.7 +#include <inttypes.h> 1.8 1.9 #include "mempool.h" 1.10 1.11 @@ -84,7 +85,8 @@ 1.12 return newm + sizeof(ucx_destructor); 1.13 } 1.14 } 1.15 - fprintf(stderr, "FATAL: %8x not in mpool %8x\n", ptr, pool); 1.16 + fprintf(stderr, "FATAL: 0x%08"PRIxPTR" not in mpool 0x%08"PRIxPTR"\n", 1.17 + (intptr_t)ptr, (intptr_t)pool); 1.18 exit(1); 1.19 } else { 1.20 return newm + sizeof(ucx_destructor);