X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=debug.c;h=d1e2987ba3e7c1004487bcacd858ade03944a12a;hp=5e9806335fc630e01da4f8a55c5ed042dd939488;hb=71ccdf58a51e339962db65dc8d875527cf795b00;hpb=46c48f1f9b8ce94132c13638e4c83c13e1d392da diff --git a/debug.c b/debug.c index 5e980633..d1e2987b 100644 --- a/debug.c +++ b/debug.c @@ -1,26 +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); - pid = getpid(); - if (fio_debug_jobp && *fio_debug_jobp != -1U - && pid != *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