]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix old compilers printf format for mb_size_t
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 5 Mar 2015 07:26:24 +0000 (23:26 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 5 Mar 2015 07:26:24 +0000 (23:26 -0800)
src/BodyPipe.cc

index 58c7d0853eddb2fa12819f8e4818af46fe8f3bb6..c4d4ba20817657c22117b0b25814b9cb7a3a487c 100644 (file)
@@ -450,7 +450,7 @@ const char *BodyPipe::status() const
     else
         outputBuffer.append("<=?", 3);
 
-    outputBuffer.appendf(" %u+%u", theBuf.contentSize(), theBuf.spaceSize());
+    outputBuffer.appendf(" %" PRId64 "+%" PRId64, static_cast<int64_t>(theBuf.contentSize()), static_cast<int64_t>(theBuf.spaceSize()));
 
     outputBuffer.appendf(" pipe%p", this);
     if (theProducer.set())