From 958bb84f772ba098d67d70bcbbdb9b700f17abb7 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Thu, 9 Mar 2023 16:32:20 +0100 Subject: Temporarily switching off time annotations of debug log The "dump *" commands are totally garbled by the time annotations. --- sysdep/unix/log.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysdep/unix') diff --git a/sysdep/unix/log.c b/sysdep/unix/log.c index d09481bc..be7f8adf 100644 --- a/sysdep/unix/log.c +++ b/sysdep/unix/log.c @@ -314,6 +314,7 @@ debug(const char *msg, ...) va_start(args, msg); if (dbgf) { +#if 0 struct timespec dbg_time; clock_gettime(CLOCK_MONOTONIC, &dbg_time); uint nsec; @@ -333,7 +334,7 @@ debug(const char *msg, ...) int n = bsnprintf(pos, max, "%u.%09u: [%04x] ", sec, nsec, THIS_THREAD_ID); pos += n; max -= n; - +#endif if (bvsnprintf(pos, max, msg, args) < 0) bug("Extremely long debug output, split it."); -- cgit v1.2.3