X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=debug.c;h=d1e2987ba3e7c1004487bcacd858ade03944a12a;hp=ecee8e350bce696f4d4935424a8a38915c123855;hb=089ddd95141af8a6cb83067123af1200aa81b2b8;hpb=8037423f08649a7c3378dadf95327d6553105264 diff --git a/debug.c b/debug.c index ecee8e35..d1e2987b 100644 --- a/debug.c +++ b/debug.c @@ -1,25 +1,18 @@ +#include #include -#include -#include + #include "debug.h" +#include "log.h" #ifdef FIO_INC_DEBUG void __dprint(int type, const char *str, ...) { va_list args; - pid_t pid; assert(type < FD_DEBUG_MAX); - if (fio_debug_jobp && *fio_debug_jobp != -1U - && (pid = getpid() != *fio_debug_jobp)) - return; - - log_local("%-8s ", debug_levels[type].name); - log_local("%-5u ", (int) pid); - va_start(args, str); - log_valist(str, args); + log_prevalist(type, str, args); va_end(args); } #endif