mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-28 21:48:05 +08:00
feat(heap): Fix HEAP dump error
This commit is contained in:
@ -118,7 +118,7 @@ void heap_trace_dump(void)
|
||||
if (mem_blk_is_used(p) && mem_blk_is_traced(p)) {
|
||||
mem2_blk_t *mem2_blk = (mem2_blk_t *)p;
|
||||
|
||||
if (mem2_blk->line == (size_t)-1) {
|
||||
if (!mem2_blk->line) {
|
||||
ESP_EARLY_LOGI(TAG, HEAP_INFO " caller func %p", HEAP_INFO_PARAM(p), mem2_blk->file);
|
||||
} else {
|
||||
const char *file = rindex(mem2_blk->file, '/');
|
||||
|
Reference in New Issue
Block a user