mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Changed VERBOSITY_LEVEL to VERBOSITY_ATLEAST to be more accurate.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93063 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -154,10 +154,10 @@ unsigned int ast_verbose_get_by_file(const char *file);
|
||||
ast_log(LOG_DEBUG, __VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
#define VERBOSITY_LEVEL(level) (option_verbose >= (level) || (ast_opt_verb_file && ast_verbose_get_by_file(__FILE__) >= (level)))
|
||||
#define VERBOSITY_ATLEAST(level) (option_verbose >= (level) || (ast_opt_verb_file && ast_verbose_get_by_file(__FILE__) >= (level)))
|
||||
|
||||
#define ast_verb(level, ...) do { \
|
||||
if (VERBOSITY_LEVEL((level)) ) { \
|
||||
if (VERBOSITY_ATLEAST((level)) ) { \
|
||||
if (level >= 4) \
|
||||
ast_verbose(VERBOSE_PREFIX_4 __VA_ARGS__); \
|
||||
else if (level == 3) \
|
||||
|
Reference in New Issue
Block a user