aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirclient/dirclient.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-02-20 14:38:41 -0500
committerNick Mathewson <nickm@torproject.org>2020-02-20 20:49:38 -0500
commit84f2e282049dfb892f4ba849fae4e0c19b7a4166 (patch)
tree9823c2a8a7226cf2a63b1851202ee712ae84c5f1 /src/feature/dirclient/dirclient.c
parentce9eeefbcc7c87c7608612605fa325d712c2c944 (diff)
downloadtor-84f2e282049dfb892f4ba849fae4e0c19b7a4166.tar.gz
tor-84f2e282049dfb892f4ba849fae4e0c19b7a4166.zip
Use PRIu64 and TOR_PRIuSZ, to fix 32-bit build error.
Diffstat (limited to 'src/feature/dirclient/dirclient.c')
-rw-r--r--src/feature/dirclient/dirclient.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/feature/dirclient/dirclient.c b/src/feature/dirclient/dirclient.c
index ecedbddf44..9b9cdd1926 100644
--- a/src/feature/dirclient/dirclient.c
+++ b/src/feature/dirclient/dirclient.c
@@ -1997,7 +1997,8 @@ dirclient_dump_total_dls(void)
bootstrapped?"not ":"");
first_time = false;
}
- log_notice(LD_NET, " %zu (%s)", n, dir_conn_purpose_to_string(i));
+ log_notice(LD_NET, " %"PRIu64" (%s)",
+ n, dir_conn_purpose_to_string(i));
}
}
}
@@ -2035,7 +2036,7 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
received_bytes = connection_get_inbuf_len(TO_CONN(conn));
- log_debug(LD_DIR, "Downloaded %zu bytes on connection of purpose "
+ log_debug(LD_DIR, "Downloaded %"TOR_PRIuSZ" bytes on connection of purpose "
"%s; bootstrap %d%%",
received_bytes,
dir_conn_purpose_to_string(conn->base_.purpose),