From: Maria Matejka Date: Thu, 9 Mar 2023 15:32:20 +0000 (+0100) Subject: Temporarily switching off time annotations of debug log X-Git-Tag: v3.0-alpha1~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=958bb84f772ba098d67d70bcbbdb9b700f17abb7;p=thirdparty%2Fbird.git Temporarily switching off time annotations of debug log The "dump *" commands are totally garbled by the time annotations. --- diff --git a/sysdep/unix/log.c b/sysdep/unix/log.c index d09481bc2..be7f8adfb 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.");