Revert "debug: only do getpid() if we have to"
authorJens Axboe <axboe@kernel.dk>
Wed, 27 Feb 2013 11:32:43 +0000 (12:32 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 27 Feb 2013 11:32:43 +0000 (12:32 +0100)
This reverts commit 8037423f08649a7c3378dadf95327d6553105264.

debug.c

diff --git a/debug.c b/debug.c
index ecee8e3..5e98063 100644 (file)
--- a/debug.c
+++ b/debug.c
@@ -11,8 +11,9 @@ 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);