1. 修复扩展格式的日志打印堆栈信息
This commit is contained in:
parent
550f7b4aaa
commit
3a95d5e09e
23
src/HDLog.c
23
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);
|
printf(_LOG_BASE_INFO, fileName, funcName, line);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (HBitGet(sLogItem, kLogLevelStack))
|
if (HBitGet(sLogItem, kLogLevelStack))
|
||||||
{
|
{
|
||||||
_LOG_USE_COLOR(_LOG_COLOR_YELLOW);
|
_LOG_USE_COLOR(_LOG_COLOR_YELLOW);
|
||||||
printf("[0x%04X]", HDLogDebugGetCurrStackSize());
|
printf("[0x%04X]", HDLogDebugGetCurrStackSize());
|
||||||
}
|
}
|
||||||
|
|
||||||
#if USE_SYS_CHECK_HEAP
|
#if USE_SYS_CHECK_HEAP
|
||||||
if (HBitGet(sLogItem, kLogLevelHeap) && sGetCurrHeapSize)
|
if (HBitGet(sLogItem, kLogLevelHeap) && sGetCurrHeapSize)
|
||||||
{
|
{
|
||||||
_LOG_USE_COLOR(_LOG_COLOR_GREEN);
|
_LOG_USE_COLOR(_LOG_COLOR_GREEN);
|
||||||
printf("[0x%04X]", sGetCurrHeapSize(0));
|
printf("[0x%04X]", sGetCurrHeapSize(0));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
_LOG_USE_COLOR(_LOG_COLOR_CYAN);
|
_LOG_USE_COLOR(_LOG_COLOR_CYAN);
|
||||||
|
|
||||||
va_list args;
|
va_list args;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user