[tor-commits] [tor/master] Fix compilation warning: must not format u64 as long.

nickm at torproject.org nickm at torproject.org
Wed Dec 26 04:34:55 UTC 2012


commit 01a09e8f8601ce61be500c92ea200c29e4389c7a
Author: Nick Mathewson <nickm at torproject.org>
Date:   Tue Dec 25 23:34:38 2012 -0500

    Fix compilation warning: must not format u64 as long.
---
 src/or/connection_edge.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index a7c201f..defe944 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -2199,8 +2199,10 @@ connection_ap_handshake_socks_reply(entry_connection_t *conn, char *reply,
       // DNS remaps can trigger this. So can failed hidden service
       // lookups.
       log_info(LD_BUG,
-               "No origin circuit for successful SOCKS stream %lu. Reason: "
-               "%d", ENTRY_TO_CONN(conn)->global_identifier, endreason);
+               "No origin circuit for successful SOCKS stream "U64_FORMAT
+               ". Reason: %d",
+               U64_PRINTF_ARG(ENTRY_TO_CONN(conn)->global_identifier),
+               endreason);
     } else {
       TO_ORIGIN_CIRCUIT(conn->edge_.on_circuit)->path_state
           = PATH_STATE_USE_SUCCEEDED;



More information about the tor-commits mailing list