summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Felix Handte <w@felixhandte.com>2019-08-06 22:54:03 (GMT)
committerW. Felix Handte <w@felixhandte.com>2019-08-06 22:54:03 (GMT)
commit4f49d744e8de26b4d942c0c0e480f6a37dde41a5 (patch)
treee2f5eacf1e883623f636e8bd7e36df0257f6a26b
parent918269a4e395d88364a517b889473922ac5521ec (diff)
downloadlz4-4f49d744e8de26b4d942c0c0e480f6a37dde41a5.zip
lz4-4f49d744e8de26b4d942c0c0e480f6a37dde41a5.tar.gz
lz4-4f49d744e8de26b4d942c0c0e480f6a37dde41a5.tar.bz2
Add Attach Dict Debug Log
-rw-r--r--lib/lz4.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index 147a8d6..07739a7 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -1429,6 +1429,10 @@ int LZ4_loadDict (LZ4_stream_t* LZ4_dict, const char* dictionary, int dictSize)
}
void LZ4_attach_dictionary(LZ4_stream_t* workingStream, const LZ4_stream_t* dictionaryStream) {
+ DEBUGLOG(4, "LZ4_attach_dictionary (%p, %p, size %d)",
+ workingStream, dictionaryStream, dictionaryStream != NULL ?
+ dictionaryStream->internal_donotuse.dictSize : 0);
+
/* Calling LZ4_resetStream_fast() here makes sure that changes will not be
* erased by subsequent calls to LZ4_resetStream_fast() in case stream was
* marked as having dirty context, e.g. requiring full reset.