init: use __log_buf() if we know buf != NULL
[fio.git] / debug.c
CommitLineData
3d2d14bc 1#include <assert.h>
bf84eacb 2#include <stdarg.h>
3d2d14bc 3
bf84eacb 4#include "debug.h"
3d2d14bc 5#include "log.h"
bf84eacb 6
2d5c40e7 7#ifdef FIO_INC_DEBUG
bf84eacb
JA
8void __dprint(int type, const char *str, ...)
9{
10 va_list args;
bf84eacb
JA
11
12 assert(type < FD_DEBUG_MAX);
13
bf84eacb 14 va_start(args, str);
e5f9a813 15 log_prevalist(type, str, args);
bf84eacb
JA
16 va_end(args);
17}
2d5c40e7 18#endif