summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2011-03-22 20:42:28 +0900
committerAkira TAGOH <akira@tagoh.org>2011-03-22 20:42:28 +0900
commit7d6d94badf5d5756d8ff7b55d354ac472cb7e53f (patch)
treea67ff6cb0921b28b705ac6e14e89e627a0da1ff6
parent0917f39e073109d2a006807f63429352c3b7c3d5 (diff)
trivial update for debugging
-rw-r--r--hieroglyph/hgallocator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hieroglyph/hgallocator.c b/hieroglyph/hgallocator.c
index 27c0c3d..18fddfb 100644
--- a/hieroglyph/hgallocator.c
+++ b/hieroglyph/hgallocator.c
@@ -216,7 +216,7 @@ _hg_allocator_bitmap_alloc(hg_allocator_bitmap_t *bitmap,
aligned_size = HG_ALIGNED_TO (size, BLOCK_SIZE) / BLOCK_SIZE;
page = bitmap->last_page;
- hg_debug(HG_MSGCAT_ALLOC, "%ld blocks required", aligned_size);
+ hg_debug(HG_MSGCAT_ALLOC, "%ld blocks required (%u + %u bytes)", aligned_size, size - sizeof (hg_allocator_block_t), sizeof (hg_allocator_block_t));
#if defined(HG_DEBUG)
_hg_allocator_bitmap_dump(bitmap, page);
#endif
@@ -232,7 +232,7 @@ _hg_allocator_bitmap_alloc(hg_allocator_bitmap_t *bitmap,
bitmap->last_index[page] = ((i + 1) >= bitmap->size[page] ? 0 : i);
bitmap->last_page = page;
- hg_debug(HG_MSGCAT_ALLOC, "allocated at [page: %d, index: %d]", page, i + 1);
+ hg_debug(HG_MSGCAT_ALLOC, "allocated at [page: %d, index: %d, blocks: %d]", page, i + 1, aligned_size);
return _hg_allocator_quark_build(page, i + 1);
} else {