Put parenthesis around the level argument to ast_debug()
authorRussell Bryant <russell@russellbryant.com>
Tue, 12 Jun 2007 20:00:39 +0000 (20:00 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 12 Jun 2007 20:00:39 +0000 (20:00 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69018 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/logger.h

index 057160c..3d2c66b 100644 (file)
@@ -135,7 +135,7 @@ void ast_console_toggle_mute(int fd);
  *        to get logged
  */
 #define ast_debug(level, ...) do {       \
-       if (option_debug >= level) {         \
+       if (option_debug >= (level)) {       \
                ast_log(LOG_DEBUG, __VA_ARGS__); \
        }                                    \
 } while (0)