From 375e3aad6c35be2605acbec873d8ad6c54f49434 Mon Sep 17 00:00:00 2001 From: Kevin Svetlitski Date: Thu, 11 Nov 2021 13:17:30 -0800 Subject: [PATCH] Ensure formatting directives for displaying size_t are portable --- programs/fileio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/fileio.c b/programs/fileio.c index 2f5850903..cf3e7414c 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -1809,11 +1809,11 @@ void FIO_displayCompressionParameters(const FIO_prefs_t* prefs) { DISPLAY("%s", INDEX(rowMatchFinderOptions, prefs->useRowMatchFinder)); DISPLAY("%s", prefs->rsyncable ? " --rsyncable" : ""); if (prefs->streamSrcSize) - DISPLAY(" --stream-size=%lu", prefs->streamSrcSize); + DISPLAY(" --stream-size=%u", (unsigned) prefs->streamSrcSize); if (prefs->srcSizeHint) DISPLAY(" --size-hint=%d", prefs->srcSizeHint); if (prefs->targetCBlockSize) - DISPLAY(" --target-compressed-block-size=%lu", prefs->targetCBlockSize); + DISPLAY(" --target-compressed-block-size=%u", (unsigned) prefs->targetCBlockSize); DISPLAY("%s", INDEX(compressLiteralsOptions, prefs->literalCompressionMode)); DISPLAY(" --memory=%u", prefs->memLimit ? prefs->memLimit : 128 MB); DISPLAY(" --threads=%d", prefs->nbWorkers); -- 2.47.2