Fix invalid format specifiers
parent
c944d64234
commit
d2d2e0c197
|
@ -149,7 +149,7 @@ char * caml_instr_string (code_t pc)
|
|||
snprintf(buf, sizeof(buf), "%s %d, %d", nam, pc[0], pc[1]);
|
||||
break;
|
||||
case SWITCH:
|
||||
snprintf(buf, sizeof(buf), "SWITCH sz%#lx=%ld::ntag%ld nint%ld",
|
||||
snprintf(buf, sizeof(buf), "SWITCH sz%#lx=%ld::ntag%lu nint%lu",
|
||||
(long) pc[0], (long) pc[0], (unsigned long) pc[0] >> 16,
|
||||
(unsigned long) pc[0] & 0xffff);
|
||||
break;
|
||||
|
|
|
@ -429,7 +429,7 @@ void caml_shrink_heap (char *chunk)
|
|||
|
||||
Caml_state->stat_heap_wsz -= Wsize_bsize (Chunk_size (chunk));
|
||||
caml_gc_message (0x04, "Shrinking heap to %"
|
||||
ARCH_INTNAT_PRINTF_FORMAT "uk words\n",
|
||||
ARCH_INTNAT_PRINTF_FORMAT "dk words\n",
|
||||
Caml_state->stat_heap_wsz / 1024);
|
||||
|
||||
#ifdef DEBUG
|
||||
|
|
Loading…
Reference in New Issue