diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-04-09 20:04:36 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-04-09 20:04:36 +0000 |
commit | 192259f63053bc6209b4e30901f959387f618d2e (patch) | |
tree | 006fef2c9386e8de91465fb6e75a6776cbda06fb | |
parent | corrected spacing. (diff) | |
download | rtems-192259f63053bc6209b4e30901f959387f618d2e.tar.bz2 |
enhanced printf statements
-rw-r--r-- | c/src/exec/score/src/heap.c | 8 | ||||
-rw-r--r-- | cpukit/score/src/heap.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/c/src/exec/score/src/heap.c b/c/src/exec/score/src/heap.c index 5c9d9daf1b..9065ab4f02 100644 --- a/c/src/exec/score/src/heap.c +++ b/c/src/exec/score/src/heap.c @@ -499,8 +499,8 @@ void _Heap_Walk( if ( the_block->front_flag != next_block->back_flag ) { error = 1; printf("PASS: %d Front and back flags don't match\n", source); - printf(" Current Block: Back - %d, Front - %d", - the_block->back_flag, the_block->front_flag); + printf(" Current Block (%p): Back - %d, Front - %d", + the_block, the_block->back_flag, the_block->front_flag); if (do_dump == TRUE) { if (_Heap_Is_block_free(the_block)) { printf(" Prev 0x%p, Next 0x%p\n", @@ -511,8 +511,8 @@ void _Heap_Walk( } else { printf("\n"); } - printf(" Next Block: Back - %d, Front - %d", - next_block->back_flag, next_block->front_flag); + printf(" Next Block (%p): Back - %d, Front - %d", + next_block, next_block->back_flag, next_block->front_flag); if (do_dump == TRUE) { if (_Heap_Is_block_free(next_block)) { printf(" Prev 0x%p, Next 0x%p\n", diff --git a/cpukit/score/src/heap.c b/cpukit/score/src/heap.c index 5c9d9daf1b..9065ab4f02 100644 --- a/cpukit/score/src/heap.c +++ b/cpukit/score/src/heap.c @@ -499,8 +499,8 @@ void _Heap_Walk( if ( the_block->front_flag != next_block->back_flag ) { error = 1; printf("PASS: %d Front and back flags don't match\n", source); - printf(" Current Block: Back - %d, Front - %d", - the_block->back_flag, the_block->front_flag); + printf(" Current Block (%p): Back - %d, Front - %d", + the_block, the_block->back_flag, the_block->front_flag); if (do_dump == TRUE) { if (_Heap_Is_block_free(the_block)) { printf(" Prev 0x%p, Next 0x%p\n", @@ -511,8 +511,8 @@ void _Heap_Walk( } else { printf("\n"); } - printf(" Next Block: Back - %d, Front - %d", - next_block->back_flag, next_block->front_flag); + printf(" Next Block (%p): Back - %d, Front - %d", + next_block, next_block->back_flag, next_block->front_flag); if (do_dump == TRUE) { if (_Heap_Is_block_free(next_block)) { printf(" Prev 0x%p, Next 0x%p\n", |