Merge branch 'bugfix/multi_heap_printf_backport_v3.3' into 'release/v3.3'

heap: Fix printf usage in heap poisoning (backport v3.3)

See merge request espressif/esp-idf!6091
This commit is contained in:
Jiang Jiang Jian 2019-10-29 12:07:30 +08:00
commit b90f32bffb
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ static poison_head_t *verify_allocated_region(void *data, bool print_errors)
}
if (canary != TAIL_CANARY_PATTERN) {
if (print_errors) {
printf("CORRUPT HEAP: Bad tail at %p. Expected 0x%08x got 0x%08x\n", &tail->tail_canary,
MULTI_HEAP_STDERR_PRINTF("CORRUPT HEAP: Bad tail at %p. Expected 0x%08x got 0x%08x\n", &tail->tail_canary,
TAIL_CANARY_PATTERN, canary);
}
return NULL;