diff options
author | Evan Huus <eapache@gmail.com> | 2013-03-11 19:24:51 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-03-11 19:24:51 +0000 |
commit | e9e54d662f7715d01a1b97b414afb976d1c33be1 (patch) | |
tree | c3b775c9306bd5aada12e78ab5ab23adc8632261 /epan/wmem/wmem_allocator_block.c | |
parent | 8de4b82fcd1fe896a1ac092d794d912af115e64a (diff) | |
download | wireshark-e9e54d662f7715d01a1b97b414afb976d1c33be1.tar.gz wireshark-e9e54d662f7715d01a1b97b414afb976d1c33be1.tar.bz2 wireshark-e9e54d662f7715d01a1b97b414afb976d1c33be1.zip |
Minor improvements to block allocator debugging.
svn path=/trunk/; revision=48252
Diffstat (limited to 'epan/wmem/wmem_allocator_block.c')
-rw-r--r-- | epan/wmem/wmem_allocator_block.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/epan/wmem/wmem_allocator_block.c b/epan/wmem/wmem_allocator_block.c index 45829b3846..ee2845b30b 100644 --- a/epan/wmem/wmem_allocator_block.c +++ b/epan/wmem/wmem_allocator_block.c @@ -193,6 +193,10 @@ wmem_block_debug_free_list(wmem_block_allocator_t *allocator) if (free_list == allocator->free_insert_point) { seen_insert_point = TRUE; + printf(" * "); + } + else { + printf(" "); } printf("Free chunk at %p (prev: %p; next:%p)\n", @@ -203,10 +207,7 @@ wmem_block_debug_free_list(wmem_block_allocator_t *allocator) free_list = free_head->next; } - if (!seen_insert_point) { - printf("!!Didn't see insert point %p!!\n", - allocator->free_insert_point); - } + g_assert(seen_insert_point); printf("END DEBUG FREE LIST\n"); } |