projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e244616
)
debug: fix inverted logic in fio_did_warn()
fio-3.4
author
Jens Axboe
<axboe@kernel.dk>
Mon, 12 Feb 2018 17:55:07 +0000
(10:55 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 12 Feb 2018 17:55:07 +0000
(10:55 -0700)
Fixes:
5ec3bc5401f3
("init: add global 'warned' state")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
debug.h
patch
|
blob
|
blame
|
history
diff --git
a/debug.h
b/debug.h
index a2b6fa67307deb75ccaeb72223871cdfc6e75aac..ba62214683769b32a6ab31ac0f543628ce658269 100644
(file)
--- a/
debug.h
+++ b/
debug.h
@@
-31,11
+31,10
@@
extern unsigned int fio_debug_jobno, *fio_debug_jobp, *fio_warned;
static inline bool fio_did_warn(unsigned int mask)
{
- if (!(*fio_warned & mask)) {
- *fio_warned |= mask;
+ if (*fio_warned & mask)
return true;
- }
+ *fio_warned |= mask;
return false;
}