summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/heapwalk.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-09-07 19:39:25 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-09-07 19:39:25 +0000
commit5ae327bcf7998573c437fafbc0c298c252c7eec1 (patch)
tree553bbfadcf4d4ac41e893ff29c2716a45f3cc591 /cpukit/score/src/heapwalk.c
parent2007-09-07 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-5ae327bcf7998573c437fafbc0c298c252c7eec1.tar.bz2
2007-09-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/heap.c: Style. * score/src/heapwalk.c: Add more information to prints. * score/src/pheapwalk.c: Do not lock allocator mutex if dispatching is disabled.
Diffstat (limited to 'cpukit/score/src/heapwalk.c')
-rw-r--r--cpukit/score/src/heapwalk.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/cpukit/score/src/heapwalk.c b/cpukit/score/src/heapwalk.c
index db8555cd87..0167bbba53 100644
--- a/cpukit/score/src/heapwalk.c
+++ b/cpukit/score/src/heapwalk.c
@@ -99,7 +99,7 @@ boolean _Heap_Walk(
error = 1;
}
- while ( the_block < end ) {
+ while ( the_block != end ) {
uint32_t const the_size = _Heap_Block_size(the_block);
Heap_Block *const next_block = _Heap_Block_at(the_block, the_size);
boolean prev_used = _Heap_Is_prev_used(the_block);
@@ -165,12 +165,14 @@ boolean _Heap_Walk(
}
if (the_block != end) {
- printk("PASS: %d !last block address isn't equal to 'final'\n", source);
+ printk("PASS: %d !last block address isn't equal to 'final' %p %p\n",
+ source, the_block, end);
error = 1;
}
if (_Heap_Block_size(the_block) != the_heap->page_size) {
- printk("PASS: %d !last block's size isn't page_size\n", source);
+ printk("PASS: %d !last block's size isn't page_size (%d != %d)\n", source,
+ _Heap_Block_size(the_block), the_heap->page_size);
error = 1;
}