]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed g_debuglevel variable name 1184/head
authorYann Collet <cyan@fb.com>
Thu, 14 Jun 2018 00:02:33 +0000 (20:02 -0400)
committerYann Collet <cyan@fb.com>
Thu, 14 Jun 2018 00:02:33 +0000 (20:02 -0400)
in debug.h

lib/common/debug.h

index 1b81f229cc5515e8e93a91531d25047ee5376057..95a3fcabea2a6b3aec3501a6cf0f7057de9a08b1 100644 (file)
@@ -93,18 +93,18 @@ extern "C" {
 
 #if (DEBUGLEVEL>=2)
 #  include <stdio.h>
-extern int g_debug_level; /* here, this variable is only declared,
+extern int g_debuglevel; /* here, this variable is only declared,
                            it actually lives in debug.c,
                            and is shared by the whole process.
                            It's typically used to enable very verbose levels
                            on selective conditions (such as position in src) */
 
 #  define RAWLOG(l, ...) {                                      \
-                if (l<=g_debug_level) {                         \
+                if (l<=g_debuglevel) {                          \
                     fprintf(stderr, __VA_ARGS__);               \
             }   }
 #  define DEBUGLOG(l, ...) {                                    \
-                if (l<=g_debug_level) {                         \
+                if (l<=g_debuglevel) {                          \
                     fprintf(stderr, __FILE__ ": " __VA_ARGS__); \
                     fprintf(stderr, " \n");                     \
             }   }