Put parenthesis around the level argument to ast_debug()
[asterisk/asterisk.git] / 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)