]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed assert() condition
authorYann Collet <cyan@fb.com>
Thu, 9 Aug 2018 22:57:19 +0000 (15:57 -0700)
committerYann Collet <cyan@fb.com>
Thu, 9 Aug 2018 22:57:19 +0000 (15:57 -0700)
programs/fileio.c

index c1587f8f89724f2d923eaa5051c42a4e092f7a32..39b2c741c8e90202e0f6ebba74a58fe7709cc22e 100644 (file)
@@ -783,7 +783,7 @@ FIO_compressZstdFrame(const cRess_t* ressPtr,
                                 (U32)(zfp.produced >> 20),
                                 cShare );
                 } else {
-                    assert(g_displayLevel == 2);
+                    /* g_displayLevel <= 2; only display notifications if == 2; */
                     DISPLAYLEVEL(2, "\rRead : %u ", (U32)(zfp.consumed >> 20));
                     if (fileSize != UTIL_FILESIZE_UNKNOWN)
                         DISPLAYLEVEL(2, "/ %u ", (U32)(fileSize >> 20));