]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
improved logging
authorinikep <inikep@gmail.com>
Mon, 4 Apr 2016 19:15:23 +0000 (21:15 +0200)
committerinikep <inikep@gmail.com>
Mon, 4 Apr 2016 19:15:23 +0000 (21:15 +0200)
lib/zstd_compress.c
lib/zstd_opt.h
programs/bench.c

index 8edea5e2337767b9de75e742b8c1f7fa76706d57..38b3f608313ea0fbfbb059af57d81f458c81997e 100644 (file)
@@ -2154,7 +2154,7 @@ size_t ZSTD_compressBlock(ZSTD_CCtx* zc, void* dst, size_t dstCapacity, const vo
 {
     if (srcSize > ZSTD_BLOCKSIZE_MAX) return ERROR(srcSize_wrong);
     zc->params.cParams.searchLength = MINMATCH; /* force ZSTD_btopt to MINMATCH in block mode */
-    ZSTD_LOG_BLOCK("%p: ZSTD_compressBlock searchLength=%d\n", zc->base, zc->params.searchLength);
+    ZSTD_LOG_BLOCK("%p: ZSTD_compressBlock searchLength=%d\n", zc->base, zc->params.cParams.searchLength);
     return ZSTD_compressContinue_internal(zc, dst, dstCapacity, src, srcSize, 0);
 }
 
index 2f6d175612b64d96a655f11656f29595d04335c7..84cb406cee7cda041494004429bbcd5a1b107b98 100644 (file)
@@ -527,6 +527,7 @@ void ZSTD_compressBlock_opt_generic(ZSTD_CCtx* ctx,
          /* check further positions */
         for (cur = 1; cur <= last_pos; cur++) {
            inr = ip + cur;
+           ZSTD_LOG_PARSER("%d: START_NoExt price[%d/%d]=%d off=%d mlen=%d litlen=%d rep=%d rep[1]=%d\n", (int)(inr-base), cur, last_pos, opt[cur].price, opt[cur].off, opt[cur].mlen, opt[cur].litlen, opt[cur].rep[0], opt[cur].rep[1]);
 
            if (opt[cur-1].mlen == 1) {
                 litlen = opt[cur-1].litlen + 1;
index afe685f19f42fcd41c24dee527a52dfa2f32ef2f..53460fa4001821d4c965fbcad077aa5dc2aff04b 100644 (file)
@@ -450,11 +450,6 @@ static void BMK_benchCLevel(void* srcBuffer, size_t benchedSize,
 {
     benchResult_t result, total;
     int l;
-#ifdef _WIN32
-    SetPriorityClass(GetCurrentProcess(), REALTIME_PRIORITY_CLASS);
-#else
-    setpriority(PRIO_PROCESS, 0, -20);
-#endif
 
     SET_HIGH_PRIORITY;