test: Use SEVERITY_MASK_IDX() to find the LOG_* mask indexes

In the unit tests and fuzzers.

Fixes bug 31334; bugfix on 0.2.5.2-alpha.
This commit is contained in:
teor
2019-09-25 16:35:02 +10:00
parent 1ad1e84b17
commit d30a042fa8
5 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ main(int argc, char **argv)
memset(&s, 0, sizeof(s));
set_log_severity_config(loglevel, LOG_ERR, &s);
/* ALWAYS log bug warnings. */
s.masks[LOG_WARN-LOG_ERR] |= LD_BUG;
s.masks[SEVERITY_MASK_IDX(LOG_WARN)] |= LD_BUG;
add_stream_log(&s, "", fileno(stdout));
}