From 96e0702c00c1ec9a9888a2d113b38d926681d3e0 Mon Sep 17 00:00:00 2001 From: Nick Terrell Date: Thu, 6 Oct 2016 21:31:16 -0700 Subject: [PATCH] [pzstd] Print the correct width ints --- contrib/pzstd/Pzstd.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/pzstd/Pzstd.cpp b/contrib/pzstd/Pzstd.cpp index 59a2496c4..68f5bb977 100644 --- a/contrib/pzstd/Pzstd.cpp +++ b/contrib/pzstd/Pzstd.cpp @@ -15,6 +15,7 @@ #include "utils/WorkQueue.h" #include +#include #include #include #include @@ -104,11 +105,12 @@ static std::uint64_t handleOneInput(const Options &options, if (!options.decompress) { double ratio = static_cast(bytesWritten) / static_cast(bytesRead + !bytesRead); - std::fprintf(stderr, "%-20s :%6.2f%% (%6llu => %6llu bytes, %s)\n", + std::fprintf(stderr, "%-20s :%6.2f%% (%6" PRIu64 " => %6" PRIu64 + " bytes, %s)\n", inputFileName.c_str(), ratio * 100, bytesRead, bytesWritten, outputFileName.c_str()); } else { - std::fprintf(stderr, "%-20s: %llu bytes \n", + std::fprintf(stderr, "%-20s: %" PRIu64 " bytes \n", inputFileName.c_str(),bytesWritten); } }