X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=debug.c;h=2bee5078c12325873e87903c93c3623d4ca1ea76;hp=5e9806335fc630e01da4f8a55c5ed042dd939488;hb=f2cd91604af170e972438c461a40230e266a57d9;hpb=fddc6604f91ebf76d9090741f9d4f5a4d33be0c6 diff --git a/debug.c b/debug.c index 5e980633..2bee5078 100644 --- a/debug.c +++ b/debug.c @@ -7,20 +7,11 @@ 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