]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Temporarily switching off time annotations of debug log
authorMaria Matejka <mq@ucw.cz>
Thu, 9 Mar 2023 15:32:20 +0000 (16:32 +0100)
committerMaria Matejka <mq@ucw.cz>
Tue, 4 Apr 2023 15:00:58 +0000 (17:00 +0200)
The "dump *" commands are totally garbled by the time annotations.

sysdep/unix/log.c

index d09481bc2db830d7942030f361e78b3bde7feec7..be7f8adfbbeb87daa0c5c4ecb9282c8a74c58fb2 100644 (file)
@@ -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.");