Lines Matching refs:DISPLAY
91 #define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
92 #define PROGRESS(...) g_noPrompt ? 0 : DISPLAY(__VA_ARGS__)
110 DISPLAY("-Using Block Size of %i KB-\n", g_chunkSize>>10);
116 DISPLAY("- %i iterations -\n", g_nbIterations);
384 if (result!=0) { DISPLAY("Error decompressing frame : unfinished frame \n"); exit(8); }
385 if (srcSize != (size_t)inSize) { DISPLAY("Error decompressing frame : read size incorrect \n"); exit(9); }
415 DISPLAY("Error decompressing frame : must read (%u) full frame (%u) \n",
449 DISPLAY("Error decompressing frame : must read (%u) full frame (%u) \n",
465 if (LZ4F_isError(errorCode)) { DISPLAY("dctx allocation issue \n"); return 10; } }
483 if (inFile==NULL) { DISPLAY("Pb opening %s \n", inFileName); return 11; }
484 if (inFileSize==0) { DISPLAY("file is empty \n"); fclose(inFile); return 11; }
485 if (benchedSize==0) { DISPLAY("not enough memory \n"); fclose(inFile); return 11; }
490 DISPLAY("Not enough memory for '%s' full size; testing %i MB only... \n",
502 DISPLAY("\nError: not enough memory! \n");
511 DISPLAY("Loading %s... \r", inFileName);
516 DISPLAY("\nError: problem reading file '%s' !! \n", inFileName);
532 DISPLAY("\r%79s\r", "");
533 DISPLAY(" %s : \n", inFileName);
569 case 0 : DISPLAY("Compression functions : \n"); continue;
590 if (chunkP[0].origSize < 8) { DISPLAY(" cannot bench %s with less then 8 bytes \n", compressorName); continue; }
594 if (chunkP[0].origSize < 8) { DISPLAY(" cannot bench %s with less then 8 bytes \n", compressorName); continue; }
617 DISPLAY("ERROR ! %s() = 0 !! \n", compressorName);
633 DISPLAY("%2i-%-34.34s :%10i ->%9i (%5.2f%%),%7.1f MB/s\n", cAlgNb, compressorName, (int)benchedSize, (int)cSize, ratio, (double)benchedSize / bestTime / 1000000);
635 DISPLAY("%2i-%-34.34s :%10i ->%9i (%5.1f%%),%7.1f MB/s\n", cAlgNb, compressorName, (int)benchedSize, (int)cSize, ratio, (double)benchedSize / bestTime / 100000);
663 DISPLAY("ERROR ! %s() = 0 !! \n", "LZ4_compress");
678 case 0: DISPLAY("Decompression functions : \n"); continue;
730 DISPLAY("ERROR ! %s() == %i != %i !! \n",
747 DISPLAY("\n!!! WARNING !!! %14s : Invalid Checksum : %x != %x\n",
752 DISPLAY("%2i-%-34.34s :%10i -> %7.1f MB/s\n", dAlgNb, dName, (int)benchedSize, (double)benchedSize / bestTime / 1000000);
769 DISPLAY( "Usage :\n");
770 DISPLAY( " %s [arg] file1 file2 ... fileX\n", exename);
771 DISPLAY( "Arguments :\n");
772 DISPLAY( " -c : compression tests only\n");
773 DISPLAY( " -d : decompression tests only\n");
774 DISPLAY( " -H/-h : Help (this text + advanced options)\n");
780 DISPLAY( "\nAdvanced options :\n");
781 DISPLAY( " -c# : test only compression function # [1-%i]\n", NB_COMPRESSION_ALGORITHMS);
782 DISPLAY( " -d# : test only decompression function # [1-%i]\n", NB_DECOMPRESSION_ALGORITHMS);
783 DISPLAY( " -i# : iteration loops [1-9](default : %i)\n", NBLOOPS);
784 DISPLAY( " -B# : Block size [4-7](default : 7)\n");
790 DISPLAY("Wrong parameters\n");
803 DISPLAY(WELCOME_MESSAGE);