X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=debug.c;h=2bee5078c12325873e87903c93c3623d4ca1ea76;hb=e0b3258bde6f39ab3a9d178b56526b65e0e32a8d;hp=9722878a538b84bef408a2d0d7c1c259b8704941;hpb=d048ba60fc1e207ac3204ef3306a32fac77293fa;p=fio.git diff --git a/debug.c b/debug.c index 9722878a..2bee5078 100644 --- a/debug.c +++ b/debug.c @@ -3,25 +3,15 @@ #include #include "debug.h" +#ifdef FIO_INC_DEBUG void __dprint(int type, const char *str, ...) { va_list args; - pid_t pid; assert(type < FD_DEBUG_MAX); - if ((((1 << type)) & fio_debug) == 0) - return; - - pid = getpid(); - if (fio_debug_jobp && *fio_debug_jobp != -1U - && pid != *fio_debug_jobp) - return; - - log_info("%-8s ", debug_levels[(type)].name); - log_info("%-5u ", (int) pid); - va_start(args, str); - log_valist(str, args); + log_prevalist(type, str, args); va_end(args); } +#endif