aboutsummaryrefslogtreecommitdiff
path: root/src/lib/log
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-12-16 15:14:13 -0500
committerNick Mathewson <nickm@torproject.org>2019-12-16 15:14:13 -0500
commit1b619a627ca1ee11d1680dc56e90e9fc1af2ddb5 (patch)
tree39e9f8d2a560277f05e0a6c3845e28e44f11f160 /src/lib/log
parentffccf6fc55f691e01ccd3e756486415cbc7ffe8a (diff)
downloadtor-1b619a627ca1ee11d1680dc56e90e9fc1af2ddb5.tar.gz
tor-1b619a627ca1ee11d1680dc56e90e9fc1af2ddb5.zip
Use CHECK_PRINTF() for printf-like functions in util_bug.h
Diffstat (limited to 'src/lib/log')
-rw-r--r--src/lib/log/util_bug.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/log/util_bug.h b/src/lib/log/util_bug.h
index 546ae1e3ef..993a4e3abd 100644
--- a/src/lib/log/util_bug.h
+++ b/src/lib/log/util_bug.h
@@ -242,10 +242,12 @@
void tor_assertion_failed_(const char *fname, unsigned int line,
const char *func, const char *expr,
- const char *fmt, ...);
+ const char *fmt, ...)
+ CHECK_PRINTF(5,6);
void tor_bug_occurred_(const char *fname, unsigned int line,
const char *func, const char *expr,
- int once, const char *fmt, ...);
+ int once, const char *fmt, ...)
+ CHECK_PRINTF(6,7);
void tor_abort_(void) ATTR_NORETURN;