From 3a95d5e09ea7f3bcf32ee1cbeaef89a1c3dffab1 Mon Sep 17 00:00:00 2001 From: coffee Date: Thu, 7 Aug 2025 15:21:26 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BF=AE=E5=A4=8D=E6=89=A9=E5=B1=95?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E7=9A=84=E6=97=A5=E5=BF=97=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E5=A0=86=E6=A0=88=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/HDLog.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) 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;