Commit a2af8073 authored by Maria Matejka's avatar Maria Matejka
Browse files

Debug messages with timestamps.

On most of current hardware, getting monotonic clock is fast enough to
get it and write for each debug message.
parent df3264f5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -439,6 +439,8 @@ done:
void
log_init_debug(char *f)
{
  clock_gettime(CLOCK_MONOTONIC, &dbg_time_start);

  if (dbgf && dbgf != stderr)
    fclose(dbgf);
  if (!f)