From 4f49d744e8de26b4d942c0c0e480f6a37dde41a5 Mon Sep 17 00:00:00 2001 From: "W. Felix Handte" Date: Tue, 6 Aug 2019 18:54:03 -0400 Subject: Add Attach Dict Debug Log --- lib/lz4.c | 4 ++++ 1 file changed, 4 insertions(+) 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. -- cgit v0.12