summaryrefslogtreecommitdiff
path: root/src/test/log_test_helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/log_test_helpers.c')
-rw-r--r--src/test/log_test_helpers.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/test/log_test_helpers.c b/src/test/log_test_helpers.c
index 0efa3ceac3..7dae488cb1 100644
--- a/src/test/log_test_helpers.c
+++ b/src/test/log_test_helpers.c
@@ -37,20 +37,21 @@ const char *
mock_saved_log_at(int ix)
{
int saved_log_count = mock_saved_log_number();
- if(ix < 0) {
+ if (ix < 0) {
ix = saved_log_count + ix;
}
if (saved_log_count <= ix)
return "";
- return ((mock_saved_log_entry_t *)smartlist_get(saved_logs, ix))->generated_msg;
+ return ((mock_saved_log_entry_t *)
+ smartlist_get(saved_logs, ix))->generated_msg;
}
int
mock_saved_severity_at(int ix)
{
int saved_log_count = mock_saved_log_number();
- if(ix < 0) {
+ if (ix < 0) {
ix = saved_log_count + ix;
}
@@ -74,7 +75,8 @@ mock_saved_logs(void)
}
void
-mock_saving_logv(int severity, log_domain_mask_t domain, const char *funcname, const char *suffix, const char *format, va_list ap)
+mock_saving_logv(int severity, log_domain_mask_t domain, const char *funcname,
+ const char *suffix, const char *format, va_list ap)
{
(void)domain;
char *buf = tor_malloc_zero(10240);