From: W. Felix Handte Date: Thu, 21 Jun 2018 19:25:44 +0000 (-0400) Subject: Add Debug Log Statement X-Git-Tag: v1.3.5~3^2~10^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bd3d4b7d2dc660a25fe14e4d966ac947ac7b5c5;p=thirdparty%2Fzstd.git Add Debug Log Statement --- diff --git a/lib/compress/zstd_opt.c b/lib/compress/zstd_opt.c index 3f7023f78..7bd7941d8 100644 --- a/lib/compress/zstd_opt.c +++ b/lib/compress/zstd_opt.c @@ -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;