mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 15:15:15 +08:00
Merge branch 'bugfix/fix_heap_dump_error_when_input_file_without_dir' into 'master'
Fix heap dump error when input file has no dir See merge request sdk/ESP8266_RTOS_SDK!510
This commit is contained in:
@ -124,6 +124,8 @@ void heap_trace_dump(void)
|
|||||||
const char *file = rindex(mem2_blk->file, '/');
|
const char *file = rindex(mem2_blk->file, '/');
|
||||||
if (file)
|
if (file)
|
||||||
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);
|
ESP_EARLY_LOGI(TAG, HEAP_INFO " caller file %s line %d", HEAP_INFO_PARAM(p), file, mem2_blk->line);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user