]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Update DEBUGLOG Statements
authorW. Felix Handte <w@felixhandte.com>
Wed, 11 Sep 2019 15:21:00 +0000 (11:21 -0400)
committerW. Felix Handte <w@felixhandte.com>
Wed, 11 Sep 2019 15:21:00 +0000 (11:21 -0400)
lib/compress/zstd_compress.c
lib/compress/zstd_cwksp.h

index 64fe952adce63dcd7a276e6b7e1092ac2318f2d8..28341c0d94af215702f13c04ecafa7a0ca833c7e 100644 (file)
@@ -1303,6 +1303,7 @@ ZSTD_reset_matchState(ZSTD_matchState_t* ms,
     U32    const hashLog3 = ((forWho == ZSTD_resetTarget_CCtx) && cParams->minMatch==3) ? MIN(ZSTD_HASHLOG3_MAX, cParams->windowLog) : 0;
     size_t const h3Size = ((size_t)1) << hashLog3;
 
+    DEBUGLOG(4, "reset indices : %u", forceResetIndex == ZSTDirp_reset);
     if (forceResetIndex == ZSTDirp_reset) {
         memset(&ms->window, 0, sizeof(ms->window));
         ms->window.dictLimit = 1;    /* start from 1, so that 1st position is valid */
index e312e40607b1c18c3f8c825b7d8fc8bd43a3289b..4c146145573efc86c460ee30af8b7295e0744f7b 100644 (file)
@@ -188,7 +188,7 @@ MEM_STATIC void* ZSTD_cwksp_reserve_internal(
     void* bottom = ws->tableEnd;
     ZSTD_cwksp_internal_advance_phase(ws, phase);
     alloc = (BYTE *)ws->allocStart - bytes;
-    DEBUGLOG(4, "cwksp: reserving %zd bytes, %zd bytes remaining",
+    DEBUGLOG(5, "cwksp: reserving %zd bytes, %zd bytes remaining",
         bytes, ZSTD_cwksp_available_space(ws) - bytes);
     assert(alloc >= bottom);
     if (alloc < bottom) {
@@ -227,7 +227,7 @@ MEM_STATIC void* ZSTD_cwksp_reserve_table(ZSTD_cwksp* ws, size_t bytes) {
     void* alloc = ws->tableEnd;
     void* end = (BYTE *)alloc + bytes;
     void* top = ws->allocStart;
-    DEBUGLOG(4, "cwksp: reserving table %zd bytes, %zd bytes remaining",
+    DEBUGLOG(5, "cwksp: reserving table %zd bytes, %zd bytes remaining",
         bytes, ZSTD_cwksp_available_space(ws) - bytes);
     assert((bytes & (sizeof(U32)-1)) == 0);
     ZSTD_cwksp_internal_advance_phase(ws, phase);
@@ -248,7 +248,7 @@ MEM_STATIC void* ZSTD_cwksp_reserve_object(ZSTD_cwksp* ws, size_t bytes) {
     size_t roundedBytes = ZSTD_cwksp_align(bytes, sizeof(void*));
     void* start = ws->objectEnd;
     void* end = (BYTE*)start + roundedBytes;
-    DEBUGLOG(4,
+    DEBUGLOG(5,
         "cwksp: reserving object %zd bytes (rounded to %zd), %zd bytes remaining",
         bytes, roundedBytes, ZSTD_cwksp_available_space(ws) - roundedBytes);
     assert(((size_t)start & (sizeof(void*)-1)) == 0);