Lines Matching refs:DISPLAY
141 #define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
142 #define PROGRESS(...) no_prompt ? 0 : DISPLAY(__VA_ARGS__)
161 DISPLAY("-Using Block Size of %i KB-\n", chunkSize>>10);
167 DISPLAY("- %i iterations -\n", nbIterations);
395 if (result!=0) { DISPLAY("Error decompressing frame : unfinished frame\n"); exit(8); }
396 if (srcSize != (size_t)inSize) { DISPLAY("Error decompressing frame : read size incorrect\n"); exit(9); }
415 DISPLAY("dctx allocation issue \n");
443 DISPLAY( "Pb opening %s\n", inFileName);
453 DISPLAY("Not enough memory for '%s' full size; testing %i MB only...\n", inFileName, (int)(benchedSize>>20));
467 DISPLAY("\nError: not enough memory!\n");
476 DISPLAY("Loading %s... \r", inFileName);
482 DISPLAY("\nError: problem reading file '%s' !! \n", inFileName);
499 DISPLAY("\r%79s\r", "");
500 DISPLAY(" %s : \n", inFileName);
553 default : DISPLAY("ERROR ! Bad algorithm Id !! \n"); free(chunkP); return 1;
574 if (chunkP[chunkNb].compressedSize==0) DISPLAY("ERROR ! %s() = 0 !! \n", compressorName), exit(1);
589 DISPLAY("%2i-%-28.28s :%9i ->%9i (%5.2f%%),%7.1f MB/s\n", cAlgNb, compressorName, (int)benchedSize, (int)cSize, ratio, (double)benchedSize / bestTime / 1000.);
591 DISPLAY("%2i-%-28.28s :%9i ->%9i (%5.1f%%),%7.1f MB/s\n", cAlgNb, compressorName, (int)benchedSize, (int)cSize, ratio, (double)benchedSize / bestTime / 1000.);
617 if (chunkP[chunkNb].compressedSize==0) DISPLAY("ERROR ! %s() = 0 !! \n", "LZ4_compress"), exit(1);
642 if (LZ4F_isError(errorCode)) { DISPLAY("Preparation error compressing frame\n"); return 1; }
647 default : DISPLAY("ERROR ! Bad decompression algorithm Id !! \n"); free(chunkP); return 1;
669 if (chunkP[chunkNb].origSize != decodedSize) DISPLAY("ERROR ! %s() == %i != %i !! \n", dName, decodedSize, chunkP[chunkNb].origSize), exit(1);
682 if (crcOriginal!=crcDecoded) { DISPLAY("\n!!! WARNING !!! %14s : Invalid Checksum : %x != %x\n", inFileName, (unsigned)crcOriginal, (unsigned)crcDecoded); exit(1); }
685 DISPLAY("%2i-%-29.29s :%10i -> %7.1f MB/s\n", dAlgNb, dName, (int)benchedSize, (double)benchedSize / bestTime / 1000.);
705 DISPLAY( "Usage :\n");
706 DISPLAY( " %s [arg] file1 file2 ... fileX\n", exename);
707 DISPLAY( "Arguments :\n");
708 DISPLAY( " -c : compression tests only\n");
709 DISPLAY( " -d : decompression tests only\n");
710 DISPLAY( " -H/-h : Help (this text + advanced options)\n");
716 DISPLAY( "\nAdvanced options :\n");
717 DISPLAY( " -c# : test only compression function # [1-%i]\n", NB_COMPRESSION_ALGORITHMS);
718 DISPLAY( " -d# : test only decompression function # [1-%i]\n", NB_DECOMPRESSION_ALGORITHMS);
719 DISPLAY( " -i# : iteration loops [1-9](default : %i)\n", NBLOOPS);
720 DISPLAY( " -B# : Block size [4-7](default : 7)\n");
726 DISPLAY("Wrong parameters\n");
739 DISPLAY(WELCOME_MESSAGE);
785 // Display help on usage