]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Add Debug Log Statement
authorW. Felix Handte <w@felixhandte.com>
Thu, 21 Jun 2018 19:25:44 +0000 (15:25 -0400)
committerW. Felix Handte <w@felixhandte.com>
Thu, 21 Jun 2018 19:54:07 +0000 (15:54 -0400)
lib/compress/zstd_opt.c

index 3f7023f78c39d0139bb2a0b545ac5a312620f760..7bd7941d806e84f4ce73e8e94d262966761cdea6 100644 (file)
@@ -679,6 +679,8 @@ U32 ZSTD_insertBtAndGetAllMatches (
 
             if (matchLength > bestLength) {
                 matchIndex = dictMatchIndex + dmsIndexDelta;
+                DEBUGLOG(8, "found dms match of length %u at distance %u (offCode=%u)",
+                        (U32)matchLength, current - matchIndex, current - matchIndex + ZSTD_REP_MOVE);
                 if (matchLength > matchEndIdx - matchIndex)
                     matchEndIdx = matchIndex + (U32)matchLength;
                 bestLength = matchLength;