diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-07-15 12:02:18 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-07-15 12:02:18 -0400 |
commit | c0391bae75e9eb71f5fa2ab24fc97792c204225d (patch) | |
tree | 9701969423b86fdc2ba04080338d817c3b5c9864 /src/common/log.c | |
parent | 2cb59be9993ecec13ceabc0c4754e52f8c5ea4e5 (diff) | |
parent | ec6c155f827000e337796f1f1c54299fbc5cf72a (diff) | |
download | tor-c0391bae75e9eb71f5fa2ab24fc97792c204225d.tar.gz tor-c0391bae75e9eb71f5fa2ab24fc97792c204225d.zip |
Merge remote-tracking branch 'public/fancy_test_tricks'
Conflicts:
src/common/include.am
Conflict was from adding testsupport.h near where sandbox.h had
already been added.
Diffstat (limited to 'src/common/log.c')
-rw-r--r-- | src/common/log.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/log.c b/src/common/log.c index 6f95e518cb..303fba93a1 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -36,6 +36,10 @@ #include "torlog.h" #include "container.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. */ |