projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58002f9
)
debug: only do getpid() if we have to
author
Jens Axboe
<axboe@kernel.dk>
Mon, 25 Feb 2013 13:02:42 +0000
(14:02 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 25 Feb 2013 13:02:42 +0000
(14:02 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
debug.c
patch
|
blob
|
blame
|
history
diff --git
a/debug.c
b/debug.c
index 5e9806335fc630e01da4f8a55c5ed042dd939488..ecee8e350bce696f4d4935424a8a38915c123855 100644
(file)
--- a/
debug.c
+++ b/
debug.c
@@
-11,9
+11,8
@@
void __dprint(int type, const char *str, ...)
assert(type < FD_DEBUG_MAX);
- pid = getpid();
if (fio_debug_jobp && *fio_debug_jobp != -1U
- &&
pid != *fio_debug_jobp
)
+ &&
(pid = getpid() != *fio_debug_jobp)
)
return;
log_local("%-8s ", debug_levels[type].name);