diff options
Diffstat (limited to 'x2p')
-rw-r--r-- | x2p/str.c | 4 | ||||
-rw-r--r-- | x2p/util.c | 9 |
2 files changed, 7 insertions, 6 deletions
@@ -41,7 +41,7 @@ register STR *str; str->str_pok = 1; #ifdef DEBUGGING if (debug & 32) - fprintf(stderr,"0x%lx ptr(%s)\n",str,str->str_ptr); + fprintf(stderr,"0x%lx ptr(%s)\n",(unsigned long)str,str->str_ptr); #endif return str->str_ptr; } @@ -59,7 +59,7 @@ register STR *str; str->str_nok = 1; #ifdef DEBUGGING if (debug & 32) - fprintf(stderr,"0x%lx num(%g)\n",str,str->str_nval); + fprintf(stderr,"0x%lx num(%g)\n",(unsigned long)str,str->str_nval); #endif return str->str_nval; } diff --git a/x2p/util.c b/x2p/util.c index c70bab9f07..e8b666f393 100644 --- a/x2p/util.c +++ b/x2p/util.c @@ -33,7 +33,8 @@ MEM_SIZE size; ptr = malloc(size ? size : 1); #ifdef DEBUGGING if (debug & 128) - fprintf(stderr,"0x%x: (%05d) malloc %d bytes\n",ptr,an++,size); + fprintf(stderr,"0x%lx: (%05d) malloc %d bytes\n",(unsigned long)ptr, + an++,size); #endif if (ptr != Nullch) return ptr; @@ -57,8 +58,8 @@ MEM_SIZE size; ptr = realloc(where, size ? size : 1); #ifdef DEBUGGING if (debug & 128) { - fprintf(stderr,"0x%x: (%05d) rfree\n",where,an++); - fprintf(stderr,"0x%x: (%05d) realloc %d bytes\n",ptr,an++,size); + fprintf(stderr,"0x%lx: (%05d) rfree\n",(unsigned long)where,an++); + fprintf(stderr,"0x%lx: (%05d) realloc %d bytes\n",(unsigned long)ptr,an++,size); } #endif if (ptr != Nullch) @@ -78,7 +79,7 @@ Malloc_t where; { #ifdef DEBUGGING if (debug & 128) - fprintf(stderr,"0x%x: (%05d) free\n",where,an++); + fprintf(stderr,"0x%lx: (%05d) free\n",(unsigned long)where,an++); #endif free(where); } |