fix(heap): Fix heap dump error when input file has no dir

This commit is contained in:
Dong Heng
2018-09-20 21:32:56 +08:00
parent 8ead6d15c6
commit 7a3cb283ec

View File

@ -124,6 +124,8 @@ void heap_trace_dump(void)
const char *file = rindex(mem2_blk->file, '/');
if (file)
file++;
else
file = mem2_blk->file;
ESP_EARLY_LOGI(TAG, HEAP_INFO " caller file %s line %d", HEAP_INFO_PARAM(p), file, mem2_blk->line);
}