From 5346276237be6d96ec65ac3b5764fce19814e1ba Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 20 Apr 2001 13:27:24 +0000 Subject: 2001-04-20 Joel Sherrill * src/imfs/imfs_debug.c (IMFS_print_jnode): Modified to print only information that does not vary based on target or memory configuration. The old prints are still there in case they are needed in the future to debug. Printing target dependent addresses makes the test output vary by target unnecessarily. --- c/src/exec/libfs/ChangeLog | 8 ++++++++ c/src/exec/libfs/src/imfs/imfs_debug.c | 5 +++++ 2 files changed, 13 insertions(+) (limited to 'c/src/exec/libfs') diff --git a/c/src/exec/libfs/ChangeLog b/c/src/exec/libfs/ChangeLog index 5dc5dbf9c1..ef8ce14bb2 100644 --- a/c/src/exec/libfs/ChangeLog +++ b/c/src/exec/libfs/ChangeLog @@ -1,3 +1,11 @@ +2001-04-20 Joel Sherrill + + * src/imfs/imfs_debug.c (IMFS_print_jnode): Modified to print + only information that does not vary based on target or memory + configuration. The old prints are still there in case they + are needed in the future to debug. Printing target dependent + addresses makes the test output vary by target unnecessarily. + 2001-03-23 Joel Sherrill * src/imfs/memfile.c: Reapply fix from bug report from diff --git a/c/src/exec/libfs/src/imfs/imfs_debug.c b/c/src/exec/libfs/src/imfs/imfs_debug.c index c3b56dfb0b..f852c81d8b 100644 --- a/c/src/exec/libfs/src/imfs/imfs_debug.c +++ b/c/src/exec/libfs/src/imfs/imfs_debug.c @@ -73,12 +73,17 @@ void IMFS_print_jnode( break; case IMFS_MEMORY_FILE: + /* Useful when debugging .. varies between targets */ +#if 0 printf( " (file %d %p %p %p)", (int)the_jnode->info.file.size, the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); +#else + printf( " (file %d)", (int)the_jnode->info.file.size ); +#endif break; case IMFS_HARD_LINK: -- cgit v1.2.3