Skip to content
Snippets Groups Projects
Commit 958bb84f authored by Maria Matejka's avatar Maria Matejka
Browse files

Temporarily switching off time annotations of debug log

The "dump *" commands are totally garbled by the time annotations.
parent 6899ba22
No related branches found
No related tags found
No related merge requests found
......@@ -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.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment