From 620302ddaab99901d09e19b10c0112b91a3588a9 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 7 Jun 2021 15:59:16 +0200 Subject: [PATCH] (Switchres) Fix debug --- deps/switchres/log.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/deps/switchres/log.cpp b/deps/switchres/log.cpp index 50e3c9ea76..fd990422f2 100644 --- a/deps/switchres/log.cpp +++ b/deps/switchres/log.cpp @@ -14,7 +14,7 @@ #include "log.h" -enum log_verbosity { NONE, ERROR, INFO, DEBUG }; +enum log_verbosity { NONE, ERROR, INFO, DBG }; static log_verbosity log_level = INFO; void log_dummy(const char *, ...) {} @@ -36,7 +36,7 @@ LOG_ERROR log_error_bak = &log_dummy; void set_log_verbose(void *func_ptr) { - if (log_level >= DEBUG) + if (log_level >= DBG) log_verbose = (LOG_VERBOSE)func_ptr; log_verbose_bak = (LOG_VERBOSE)func_ptr; } @@ -60,8 +60,8 @@ void set_log_verbosity(int level) // Keep the log in the enum bounds if (level < NONE) level = NONE; - if(level > DEBUG) - level = DEBUG; + if(level > DBG) + level = DBG; log_error = &log_dummy; log_info = &log_dummy; @@ -73,6 +73,6 @@ void set_log_verbosity(int level) if (level >= INFO) log_info = log_info_bak; - if (level >= DEBUG) + if (level >= DBG) log_verbose = log_verbose_bak; -} \ No newline at end of file +}