fixed g_debuglevel variable name
in debug.h
This commit is contained in:
parent
fa41bcc2c2
commit
fc682263d0
@ -93,18 +93,18 @@ extern "C" {
|
|||||||
|
|
||||||
#if (DEBUGLEVEL>=2)
|
#if (DEBUGLEVEL>=2)
|
||||||
# include <stdio.h>
|
# 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,
|
it actually lives in debug.c,
|
||||||
and is shared by the whole process.
|
and is shared by the whole process.
|
||||||
It's typically used to enable very verbose levels
|
It's typically used to enable very verbose levels
|
||||||
on selective conditions (such as position in src) */
|
on selective conditions (such as position in src) */
|
||||||
|
|
||||||
# define RAWLOG(l, ...) { \
|
# define RAWLOG(l, ...) { \
|
||||||
if (l<=g_debug_level) { \
|
if (l<=g_debuglevel) { \
|
||||||
fprintf(stderr, __VA_ARGS__); \
|
fprintf(stderr, __VA_ARGS__); \
|
||||||
} }
|
} }
|
||||||
# define DEBUGLOG(l, ...) { \
|
# define DEBUGLOG(l, ...) { \
|
||||||
if (l<=g_debug_level) { \
|
if (l<=g_debuglevel) { \
|
||||||
fprintf(stderr, __FILE__ ": " __VA_ARGS__); \
|
fprintf(stderr, __FILE__ ": " __VA_ARGS__); \
|
||||||
fprintf(stderr, " \n"); \
|
fprintf(stderr, " \n"); \
|
||||||
} }
|
} }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user