diff options
author | Daan Leijen <daan@microsoft.com> | 2022-04-09 14:08:36 -0700 |
---|---|---|
committer | Daan Leijen <daan@microsoft.com> | 2022-04-09 14:08:36 -0700 |
commit | 157c9b0966057a88aa3c660a017dbc75810815e3 (patch) | |
tree | 76e24d57a99cc8d2590d1ec48f084a9b81c31a6f /test/main-override-static.c | |
parent | 12c91999ac38bb2aa93b29e48e52f37df4a3f6dc (diff) | |
parent | 016b2ad5352de399af167a1acb6042cee31f8fbe (diff) |
Merge branch 'dev' into dev-slice
Diffstat (limited to 'test/main-override-static.c')
-rw-r--r-- | test/main-override-static.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/main-override-static.c b/test/main-override-static.c index 63d90bb..adc07ae 100644 --- a/test/main-override-static.c +++ b/test/main-override-static.c @@ -194,7 +194,12 @@ static void alloc_huge(void) { } static bool test_visit(const mi_heap_t* heap, const mi_heap_area_t* area, void* block, size_t block_size, void* arg) { - printf("I'm visiting a block of size %zu, allocated size %zu\n", block_size, mi_usable_size(block)); + if (block == NULL) { + printf("visiting an area with blocks of size %zu (including padding)\n", area->full_block_size); + } + else { + printf(" block of size %zu (allocated size is %zu)\n", block_size, mi_usable_size(block)); + } return true; } |