Add Debug Log Statement

dev
W. Felix Handte 2018-06-21 15:25:44 -04:00
parent 3caba150c6
commit 5bd3d4b7d2
1 changed files with 2 additions and 0 deletions

View 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;