X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=debug.c;h=013cd53c214debe2cbb7be1ca8842c436390ff96;hp=ecee8e350bce696f4d4935424a8a38915c123855;hb=a6eaf6c9101cd3f2895376944e6425a43613dbf6;hpb=8037423f08649a7c3378dadf95327d6553105264 diff --git a/debug.c b/debug.c index ecee8e35..013cd53c 100644 --- a/debug.c +++ b/debug.c @@ -11,12 +11,13 @@ void __dprint(int type, const char *str, ...) assert(type < FD_DEBUG_MAX); + pid = getpid(); if (fio_debug_jobp && *fio_debug_jobp != -1U - && (pid = getpid() != *fio_debug_jobp)) + && pid != *fio_debug_jobp) return; - log_local("%-8s ", debug_levels[type].name); - log_local("%-5u ", (int) pid); + log_info("%-8s ", debug_levels[type].name); + log_info("%-5u ", (int) pid); va_start(args, str); log_valist(str, args);