Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
riaqn committed Jan 9, 2024
1 parent ff1982d commit 36af632
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ocaml/runtime/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ void caml_gc_log (char *msg, ...)
char fmtbuf[GC_LOG_LENGTH];
va_list args;
va_start (args, msg);
if (caml_verb_gc & 0x1000) {
caml_print_timestamp(stderr, caml_verb_gc & 0x2000);
}
snprintf(fmtbuf, GC_LOG_LENGTH, "[%02d] %s\n",
(Caml_state_opt != NULL) ? Caml_state_opt->id : -1, msg);
vfprintf(stderr, fmtbuf, args);
Expand Down

0 comments on commit 36af632

Please sign in to comment.