]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Use PRIu64 and TOR_PRIuSZ, to fix 32-bit build error.
authorNick Mathewson <nickm@torproject.org>
Thu, 20 Feb 2020 19:38:41 +0000 (14:38 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 21 Feb 2020 01:49:38 +0000 (20:49 -0500)
src/feature/dirclient/dirclient.c

index ecedbddf44a02297b7e22707d068147c8f2fecbe..9b9cdd19265dbcd1fb50a92d0e40074fddaee764 100644 (file)
@@ -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),