From: Yann Collet Date: Thu, 14 Jun 2018 00:02:33 +0000 (-0400) Subject: fixed g_debuglevel variable name X-Git-Tag: v1.3.5~3^2~20^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1184%2Fhead;p=thirdparty%2Fzstd.git fixed g_debuglevel variable name in debug.h --- diff --git a/lib/common/debug.h b/lib/common/debug.h index 1b81f229c..95a3fcabe 100644 --- a/lib/common/debug.h +++ b/lib/common/debug.h @@ -93,18 +93,18 @@ extern "C" { #if (DEBUGLEVEL>=2) # include -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"); \ } }