enhanced printf statements

This commit is contained in:
Joel Sherrill
1997-04-09 20:04:36 +00:00
parent 48e3459586
commit 192259f630
2 changed files with 8 additions and 8 deletions

View File

@@ -499,8 +499,8 @@ void _Heap_Walk(
if ( the_block->front_flag != next_block->back_flag ) { if ( the_block->front_flag != next_block->back_flag ) {
error = 1; error = 1;
printf("PASS: %d Front and back flags don't match\n", source); printf("PASS: %d Front and back flags don't match\n", source);
printf(" Current Block: Back - %d, Front - %d", printf(" Current Block (%p): Back - %d, Front - %d",
the_block->back_flag, the_block->front_flag); the_block, the_block->back_flag, the_block->front_flag);
if (do_dump == TRUE) { if (do_dump == TRUE) {
if (_Heap_Is_block_free(the_block)) { if (_Heap_Is_block_free(the_block)) {
printf(" Prev 0x%p, Next 0x%p\n", printf(" Prev 0x%p, Next 0x%p\n",
@@ -511,8 +511,8 @@ void _Heap_Walk(
} else { } else {
printf("\n"); printf("\n");
} }
printf(" Next Block: Back - %d, Front - %d", printf(" Next Block (%p): Back - %d, Front - %d",
next_block->back_flag, next_block->front_flag); next_block, next_block->back_flag, next_block->front_flag);
if (do_dump == TRUE) { if (do_dump == TRUE) {
if (_Heap_Is_block_free(next_block)) { if (_Heap_Is_block_free(next_block)) {
printf(" Prev 0x%p, Next 0x%p\n", printf(" Prev 0x%p, Next 0x%p\n",

View File

@@ -499,8 +499,8 @@ void _Heap_Walk(
if ( the_block->front_flag != next_block->back_flag ) { if ( the_block->front_flag != next_block->back_flag ) {
error = 1; error = 1;
printf("PASS: %d Front and back flags don't match\n", source); printf("PASS: %d Front and back flags don't match\n", source);
printf(" Current Block: Back - %d, Front - %d", printf(" Current Block (%p): Back - %d, Front - %d",
the_block->back_flag, the_block->front_flag); the_block, the_block->back_flag, the_block->front_flag);
if (do_dump == TRUE) { if (do_dump == TRUE) {
if (_Heap_Is_block_free(the_block)) { if (_Heap_Is_block_free(the_block)) {
printf(" Prev 0x%p, Next 0x%p\n", printf(" Prev 0x%p, Next 0x%p\n",
@@ -511,8 +511,8 @@ void _Heap_Walk(
} else { } else {
printf("\n"); printf("\n");
} }
printf(" Next Block: Back - %d, Front - %d", printf(" Next Block (%p): Back - %d, Front - %d",
next_block->back_flag, next_block->front_flag); next_block, next_block->back_flag, next_block->front_flag);
if (do_dump == TRUE) { if (do_dump == TRUE) {
if (_Heap_Is_block_free(next_block)) { if (_Heap_Is_block_free(next_block)) {
printf(" Prev 0x%p, Next 0x%p\n", printf(" Prev 0x%p, Next 0x%p\n",