]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix some 32-bit warnings about printf arguments
authorNick Mathewson <nickm@torproject.org>
Fri, 15 Sep 2017 18:02:08 +0000 (14:02 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 15 Sep 2017 18:02:08 +0000 (14:02 -0400)
src/or/scheduler_kist.c

index 54755cc40d2b726f382f1aca8154f37543a9b54f..30e86f182c28cd0eb360a81744e4f795e44bbada 100644 (file)
@@ -408,7 +408,7 @@ update_socket_written(socket_table_t *table, channel_t *chan, size_t bytes)
   }
 
   log_debug(LD_SCHED, "chan=%" PRIu64 " wrote %lu bytes, old was %" PRIi64,
-            chan->global_identifier, bytes, ent->written);
+            chan->global_identifier, (unsigned long) bytes, ent->written);
 
   ent->written += bytes;
 }
@@ -436,7 +436,8 @@ MOCK_IMPL(int, channel_should_write_to_kernel,
 MOCK_IMPL(void, channel_write_to_kernel, (channel_t *chan))
 {
   log_debug(LD_SCHED, "Writing %lu bytes to kernel for chan %" PRIu64,
-            channel_outbuf_length(chan), chan->global_identifier);
+            (unsigned long)channel_outbuf_length(chan),
+            chan->global_identifier);
   connection_handle_write(TO_CONN(BASE_CHAN_TO_TLS(chan)->conn), 0);
 }