Fix invalid format specifiers

master
Antonin Décimo 2020-07-17 09:38:28 +02:00
parent c944d64234
commit d2d2e0c197
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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