From c4a99c817a243cb7fd4771515b38461a6a847a98 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Thu, 24 Apr 2014 10:12:58 +0100 Subject: fuzzer title shows 32/64 bits mode --- programs/fuzzer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/programs/fuzzer.c b/programs/fuzzer.c index 7f3af40..ec1316f 100644 --- a/programs/fuzzer.c +++ b/programs/fuzzer.c @@ -141,7 +141,7 @@ int main(int argc, char** argv) { void* stateLZ4 = malloc(LZ4_sizeofState()); void* stateLZ4HC = malloc(LZ4_sizeofStateHC()); - printf("starting LZ4 fuzzer (%s)\n", LZ4_VERSION); + printf("starting LZ4 fuzzer (%i-bits, %s)\n", (int)(sizeof(size_t)*8), LZ4_VERSION); printf("Select an Initialisation number (default : random) : "); fflush(stdout); if ( no_prompt || fgets(userInput, sizeof userInput, stdin) ) @@ -163,7 +163,7 @@ int main(int argc, char** argv) { // note : promptThrottle is throtting stdout to prevent // Travis-CI's output limit (10MB) and false hangup detection. - const int promptThrottle = (attemptNb % (NB_ATTEMPTS / 100) == 0); + const int promptThrottle = ((attemptNb % (NB_ATTEMPTS / 100)) == 0); if (!no_prompt || attemptNb == 0 || promptThrottle) { printf("\r%7i /%7i - ", attemptNb, NB_ATTEMPTS); @@ -301,6 +301,7 @@ int main(int argc, char** argv) { FUZ_rand(&randState); } + printf("\r%7i /%7i - ", attemptNb, NB_ATTEMPTS); printf("all tests completed successfully \n"); printf("compression ratio: %0.3f%%\n", (double)cbytes/bytes*100); printf("HC compression ratio: %0.3f%%\n", (double)hcbytes/bytes*100); -- cgit v0.12