diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2014-04-24 09:12:58 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2014-04-24 09:12:58 (GMT) |
commit | c4a99c817a243cb7fd4771515b38461a6a847a98 (patch) | |
tree | 71d54dad7243574806befea1c5019d8f5450cda4 /programs | |
parent | f6beaa779d30f5033f4539b2060a06d86d51e3bc (diff) | |
download | lz4-c4a99c817a243cb7fd4771515b38461a6a847a98.zip lz4-c4a99c817a243cb7fd4771515b38461a6a847a98.tar.gz lz4-c4a99c817a243cb7fd4771515b38461a6a847a98.tar.bz2 |
fuzzer title shows 32/64 bits mode
Diffstat (limited to 'programs')
-rw-r--r-- | programs/fuzzer.c | 5 |
1 files 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); |