Skip to content
Snippets Groups Projects
Commit 1cc04c6f authored by Marek Vavruša's avatar Marek Vavruša
Browse files

lib: write debug to stdout (buffered)

parent 8002457b
Branches
Tags
No related merge requests found
......@@ -24,7 +24,8 @@
#define QRDEBUG(query, cls, fmt, ...) do { \
unsigned _ind = 0; \
for (struct kr_query *q = (query); q; q = q->parent, _ind += 2); \
fprintf(stderr, "[%s] %*s" fmt, cls, _ind, "", ## __VA_ARGS__); \
fprintf(stdout, "[%s] %*s" fmt, cls, _ind, "", ## __VA_ARGS__); \
fflush(stdout); \
} while (0)
#else
#define QRDEBUG(query, cls, fmt, ...)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment