]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed error messages
authorYann Collet <yann.collet.73@gmail.com>
Mon, 27 Jun 2016 11:36:54 +0000 (13:36 +0200)
committerYann Collet <yann.collet.73@gmail.com>
Mon, 27 Jun 2016 11:36:54 +0000 (13:36 +0200)
programs/bench.c

index a8fc7408a4248900fa6ccf4004a633a025e17581..5ebc02e56e4a9a4fed98c669276047cd40f65a43 100644 (file)
@@ -227,7 +227,7 @@ static int BMK_benchMem(const void* srcBuffer, size_t srcSize,
                                             blockTable[blockNb].cPtr,  blockTable[blockNb].cRoom,
                                             blockTable[blockNb].srcPtr,blockTable[blockNb].srcSize,
                                             cdict);
-                        if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_compress_usingPreparedCCtx() failed : %s", ZSTD_getErrorName(rSize));
+                        if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_compress_usingCDict() failed : %s", ZSTD_getErrorName(rSize));
                         blockTable[blockNb].cSize = rSize;
                     }
                     nbLoops++;
@@ -264,7 +264,7 @@ static int BMK_benchMem(const void* srcBuffer, size_t srcSize,
                             blockTable[blockNb].cPtr, blockTable[blockNb].cSize,
                             ddict);
                         if (ZSTD_isError(regenSize)) {
-                            DISPLAY("ZSTD_decompress_usingPreparedDCtx() failed on block %u : %s  \n",
+                            DISPLAY("ZSTD_decompress_usingDDict() failed on block %u : %s  \n",
                                       blockNb, ZSTD_getErrorName(regenSize));
                             clockLoop = 0;   /* force immediate test end */
                             break;