diff --git a/source/utils/logger.c b/source/utils/logger.c index 4862f1d..0411db7 100644 --- a/source/utils/logger.c +++ b/source/utils/logger.c @@ -4,7 +4,6 @@ #include #include - uint32_t moduleLogInit = false; uint32_t cafeLogInit = false; uint32_t udpLogInit = false; @@ -22,7 +21,7 @@ void initLogging() { void deinitLogging() { #ifdef DEBUG if (moduleLogInit) { - WHBLogMffoduleDeinit(); + WHBLogModuleDeinit(); moduleLogInit = false; } if (cafeLogInit) { diff --git a/source/utils/logger.h b/source/utils/logger.h index 5b1bd51..6ff5ae2 100644 --- a/source/utils/logger.h +++ b/source/utils/logger.h @@ -12,6 +12,8 @@ extern "C" { #define __FILENAME_X__ (strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__) #define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILENAME_X__) +#define DEBUG_FUNCTION_LINE_VERBOSE(FMT, ARGS...) while (0) + #define DEBUG_FUNCTION_LINE(FMT, ARGS...)do { \ WHBLogPrintf("[%23s]%30s@L%04d: " FMT "",__FILENAME__,__FUNCTION__, __LINE__, ## ARGS); \ } while (0) @@ -22,6 +24,8 @@ extern "C" { #else +#define DEBUG_FUNCTION_LINE_VERBOSE(FMT, ARGS...) while (0) + #define DEBUG_FUNCTION_LINE(FMT, ARGS...) while (0) #define DEBUG_FUNCTION_LINE_WRITE(FMT, ARGS...) while (0)