aboutsummaryrefslogtreecommitdiff
path: root/src/lib/log/log.c
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-08-05 20:04:08 +1000
committerteor <teor@torproject.org>2019-09-25 16:37:07 +1000
commit1ad1e84b17267f04960b322effaf57ea8a9690c0 (patch)
tree01a2f29e140adb2f28d73dab84564fa4a131e57c /src/lib/log/log.c
parente1429d91480ee16ebe32be35263a4695e1795ff9 (diff)
downloadtor-1ad1e84b17267f04960b322effaf57ea8a9690c0.tar.gz
tor-1ad1e84b17267f04960b322effaf57ea8a9690c0.zip
log: Move SEVERITY_MASK_IDX() to log.h
Move SEVERITY_MASK_IDX() to log.h private/unit tests section, so that we can use it in log.c, the unit tests, and the fuzzers. (The test and fuzzer code changes are in a subsequent commit.) Preparation for bug 31334.
Diffstat (limited to 'src/lib/log/log.c')
-rw-r--r--src/lib/log/log.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/log/log.c b/src/lib/log/log.c
index be6f459554..9373fd4042 100644
--- a/src/lib/log/log.c
+++ b/src/lib/log/log.c
@@ -55,10 +55,6 @@
#include <android/log.h>
#endif // HAVE_ANDROID_LOG_H.
-/** Given a severity, yields an index into log_severity_list_t.masks to use
- * for that severity. */
-#define SEVERITY_MASK_IDX(sev) ((sev) - LOG_ERR)
-
/** @{ */
/** The string we stick at the end of a log message when it is too long,
* and its length. */