[tbb-commits] [tor-browser/tor-browser-52.1.1esr-7.0-1] fixup! Bug 5282: Randomize HTTP request order and pipeline depth.
gk at torproject.org
gk at torproject.org
Mon May 29 07:09:42 UTC 2017
commit e404251e7a4e86981a33be035e7fdb0b7ed42c3b
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 tbb-commits
mailing list