aboutsummaryrefslogtreecommitdiff
path: root/src/lib/log/log.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-07-08 13:41:35 -0400
committerNick Mathewson <nickm@torproject.org>2019-07-08 13:41:35 -0400
commit4512578e49b187075d4e8b4d07a0c921a15d5135 (patch)
tree9661647e7aa16691f4b1cf4727ba869021c58100 /src/lib/log/log.h
parent09c692e72b56e08668ae5f42416741ebd6edc404 (diff)
downloadtor-4512578e49b187075d4e8b4d07a0c921a15d5135.tar.gz
tor-4512578e49b187075d4e8b4d07a0c921a15d5135.zip
Add a compile-time assertion to prevent a recurrence of 31080.
Diffstat (limited to 'src/lib/log/log.h')
-rw-r--r--src/lib/log/log.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/log/log.h b/src/lib/log/log.h
index 801bafa968..88e4ad8d61 100644
--- a/src/lib/log/log.h
+++ b/src/lib/log/log.h
@@ -118,6 +118,8 @@
#define LD_MESG (UINT64_C(1)<<29)
#define N_LOGGING_DOMAINS 30
+/** First bit that is reserved in log_domain_mask_t for non-domain flags. */
+#define LOWEST_RESERVED_LD_FLAG_ (UINT64_C(1)<<61)
#ifdef TOR_UNIT_TESTS
/** This log message should not be intercepted by mock_saving_logv */
#define LD_NO_MOCK (UINT64_C(1)<<61)