0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-03-11 17:08:46 +00:00

Temporarily switching off time annotations of debug log

The "dump *" commands are totally garbled by the time annotations.
This commit is contained in:
Maria Matejka 2023-03-09 16:32:20 +01:00
parent 6899ba2232
commit 958bb84f77

View 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.");