aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-05-03 12:31:35 -0400
committerNick Mathewson <nickm@torproject.org>2018-05-09 14:01:00 -0400
commit15ce5a3e5ab18f44172f1ada3fe1735f28a95c09 (patch)
treeac05340320ce68f71890612d41f652b664f6609f /src/or/circuitbuild.c
parentc9f07f36bf986f274ac9fc56b5c61bbcc669b22e (diff)
downloadtor-15ce5a3e5ab18f44172f1ada3fe1735f28a95c09.tar.gz
tor-15ce5a3e5ab18f44172f1ada3fe1735f28a95c09.zip
Fix some clang warnings
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 0617c24776..7f4504f6b6 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -1138,22 +1138,24 @@ circuit_send_intermediate_onion_skin(origin_circuit_t *circ,
* something has also gone wrong with our network: notify the user, and
* abandon all not-yet-used circuits. */
void
-circuit_note_clock_jumped(int seconds_elapsed, bool was_idle)
+circuit_note_clock_jumped(int64_t seconds_elapsed, bool was_idle)
{
int severity = server_mode(get_options()) ? LOG_WARN : LOG_NOTICE;
if (was_idle) {
- tor_log(severity, LD_GENERAL, "Tor has been idle for %d seconds; "
- "assuming established circuits no longer work.",
- seconds_elapsed);
+ tor_log(severity, LD_GENERAL, "Tor has been idle for "I64_FORMAT
+ " seconds; assuming established circuits no longer work.",
+ I64_PRINTF_ARG(seconds_elapsed));
} else {
tor_log(severity, LD_GENERAL,
- "Your system clock just jumped %d seconds %s; "
+ "Your system clock just jumped "I64_FORMAT" seconds %s; "
"assuming established circuits no longer work.",
- seconds_elapsed >=0 ? seconds_elapsed : -seconds_elapsed,
+ I64_PRINTF_ARG(
+ seconds_elapsed >=0 ? seconds_elapsed : -seconds_elapsed),
seconds_elapsed >=0 ? "forward" : "backward");
}
- control_event_general_status(LOG_WARN, "CLOCK_JUMPED TIME=%d IDLE=%d",
- seconds_elapsed, was_idle?1:0);
+ control_event_general_status(LOG_WARN, "CLOCK_JUMPED TIME="I64_FORMAT
+ " IDLE=%d",
+ I64_PRINTF_ARG(seconds_elapsed), was_idle?1:0);
/* so we log when it works again */
note_that_we_maybe_cant_complete_circuits();
control_event_client_status(severity, "CIRCUIT_NOT_ESTABLISHED REASON=%s",