client: use temp buffer for single output flush for json/disk util
[fio.git] / debug.c
... / ...
CommitLineData
1#include <assert.h>
2#include <stdarg.h>
3
4#include "debug.h"
5#include "log.h"
6
7#ifdef FIO_INC_DEBUG
8void __dprint(int type, const char *str, ...)
9{
10 va_list args;
11
12 assert(type < FD_DEBUG_MAX);
13
14 va_start(args, str);
15 log_prevalist(type, str, args);
16 va_end(args);
17}
18#endif