diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-10-02 13:03:43 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-10-02 13:03:43 +0200 |
commit | c01f9d9ffe03d5c46833df477fcf2a4bd36dd389 (patch) | |
tree | 5271f9e1a38a9e06301e2ca70a899ef487fe6bae /src/test/log_test_helpers.h | |
parent | f7748131296e2779451fa3ff169009821f54ef1f (diff) | |
download | tor-c01f9d9ffe03d5c46833df477fcf2a4bd36dd389.tar.gz tor-c01f9d9ffe03d5c46833df477fcf2a4bd36dd389.zip |
Fix style and compilation in log_test_helpers
Diffstat (limited to 'src/test/log_test_helpers.h')
-rw-r--r-- | src/test/log_test_helpers.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/log_test_helpers.h b/src/test/log_test_helpers.h index 789bfe4143..4822ce5677 100644 --- a/src/test/log_test_helpers.h +++ b/src/test/log_test_helpers.h @@ -15,12 +15,15 @@ typedef struct mock_saved_log_entry_t { struct mock_saved_log_entry_t *next; } mock_saved_log_entry_t; -void mock_saving_logv(int severity, log_domain_mask_t domain, const char *funcname, const char *suffix, const char *format, va_list ap); +void mock_saving_logv(int severity, log_domain_mask_t domain, + const char *funcname, const char *suffix, + const char *format, va_list ap) + CHECK_PRINTF(5, 0); void mock_clean_saved_logs(void); const smartlist_t *mock_saved_logs(void); int setup_capture_of_logs(int new_level); void teardown_capture_of_logs(int prev); -char *mock_saved_log_at(int ix); +const char *mock_saved_log_at(int ix); int mock_saved_severity_at(int ix); int mock_saved_log_number(void); |