Merge pull request #12754 from gschorcht/cpu/esp32/fix_heap_cmd

cpu/esp32: fix heap command output
This commit is contained in:
Alexandre Abadie 2019-11-20 21:59:45 +01:00 committed by GitHub
commit e9bde9eca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -271,7 +271,7 @@ unsigned int IRAM get_free_heap_size (void)
void heap_stats(void)
{
printf("heap: %u (used %u free %u)\n", (unsigned)(&_eheap - &_sheap),
printf("heap: %u (used %u, free %u) [bytes]\n", (unsigned)(&_eheap - &_sheap),
&_eheap - &_sheap - get_free_heap_size(), get_free_heap_size());
}