diff --git a/src/HDLog.c b/src/HDLog.c index 2f167a8..82f5156 100644 --- a/src/HDLog.c +++ b/src/HDLog.c @@ -270,21 +270,22 @@ void HDLogOut(uint8_t ext, uint8_t level, const char *fileName, const char *func { printf(_LOG_BASE_INFO, fileName, funcName, line); } - } - if (HBitGet(sLogItem, kLogLevelStack)) - { - _LOG_USE_COLOR(_LOG_COLOR_YELLOW); - printf("[0x%04X]", HDLogDebugGetCurrStackSize()); - } + if (HBitGet(sLogItem, kLogLevelStack)) + { + _LOG_USE_COLOR(_LOG_COLOR_YELLOW); + printf("[0x%04X]", HDLogDebugGetCurrStackSize()); + } #if USE_SYS_CHECK_HEAP - if (HBitGet(sLogItem, kLogLevelHeap) && sGetCurrHeapSize) - { - _LOG_USE_COLOR(_LOG_COLOR_GREEN); - printf("[0x%04X]", sGetCurrHeapSize(0)); - } + if (HBitGet(sLogItem, kLogLevelHeap) && sGetCurrHeapSize) + { + _LOG_USE_COLOR(_LOG_COLOR_GREEN); + printf("[0x%04X]", sGetCurrHeapSize(0)); + } #endif + } + _LOG_USE_COLOR(_LOG_COLOR_CYAN); va_list args;