[tor-commits] [tor-browser/tor-browser-52.1.0esr-7.0-2] fixup! Bug 5282: Randomize HTTP request order and pipeline depth.

gk at torproject.org gk at torproject.org
Mon May 29 07:09:04 UTC 2017


commit 7aa5a5c8565273ea41a0c003160226f3229373f6
Author: Arthur Edelstein <arthuredelstein at gmail.com>
Date:   Sat May 27 00:22:17 2017 -0700

    fixup! Bug 5282: Randomize HTTP request order and pipeline depth.
    
    Use format specifiers for unsigned long integers.
---
 netwerk/protocol/http/nsHttpPipeline.cpp | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/netwerk/protocol/http/nsHttpPipeline.cpp b/netwerk/protocol/http/nsHttpPipeline.cpp
index 207c55b..6735c55 100644
--- a/netwerk/protocol/http/nsHttpPipeline.cpp
+++ b/netwerk/protocol/http/nsHttpPipeline.cpp
@@ -16,6 +16,10 @@
 #include <algorithm>
 #include "nsHttpRequestHead.h"
 
+#ifdef WTF_TEST
+#include <inttypes.h>
+#endif
+
 #ifdef DEBUG
 #include "prthread.h"
 #endif
@@ -965,7 +969,9 @@ nsHttpPipeline::FillSendBuf()
 
 #ifdef WTF_TEST
     if (totalSent)
-      fprintf(stderr, "WTF-combine: Sent %lld/%lld bytes of %lld combined pipelined requests for host %s\n",
+      fprintf(stderr,
+              "WTF-combine: Sent %" PRIu64 "/%" PRIu64 " bytes of %" PRIu64
+              " combined pipelined requests for host %s\n",
               alreadyPending+totalSent, totalAvailable, reqsSent, ci->Origin());
 #endif
 



More information about the tor-commits mailing list