Changeset 3b2c473 in rtems
- Timestamp:
- 04/17/04 08:39:22 (19 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 05279b84
- Parents:
- a5305f6b
- Location:
- cpukit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
ra5305f6b r3b2c473 1 2004-04-17 Ralf Corsepius <ralf_corsepius@rtems.org> 2 3 * libfs/src/imfs/imfs_debug.c, libfs/src/imfs/memfile.c: 4 Use fprintf(stdout,...) instead of printf. 5 1 6 2004-04-17 Ralf Corsepius <ralf_corsepius@rtems.org> 2 7 -
cpukit/libfs/src/imfs/imfs_debug.c
ra5305f6b r3b2c473 55 55 assert( the_jnode ); 56 56 57 printf("%s", the_jnode->name );57 fprintf(stdout, "%s", the_jnode->name ); 58 58 switch( the_jnode->type ) { 59 59 case IMFS_DIRECTORY: 60 printf("/" );60 fprintf(stdout, "/" ); 61 61 break; 62 62 63 63 case IMFS_DEVICE: 64 printf(" (device %d, %d)",64 fprintf(stdout, " (device %d, %d)", 65 65 the_jnode->info.device.major, the_jnode->info.device.minor ); 66 66 break; 67 67 68 68 case IMFS_LINEAR_FILE: 69 printf(" (file %d %p)",69 fprintf(stdout, " (file %d %p)", 70 70 (int)the_jnode->info.linearfile.size, 71 71 the_jnode->info.linearfile.direct … … 76 76 /* Useful when debugging .. varies between targets */ 77 77 #if 0 78 printf(" (file %d %p %p %p)",78 fprintf(stdout, " (file %d %p %p %p)", 79 79 (int)the_jnode->info.file.size, 80 80 the_jnode->info.file.indirect, … … 83 83 ); 84 84 #else 85 printf(" (file %d)", (int)the_jnode->info.file.size );85 fprintf(stdout, " (file %d)", (int)the_jnode->info.file.size ); 86 86 #endif 87 87 break; 88 88 89 89 case IMFS_HARD_LINK: 90 printf(" links not printed\n" );90 fprintf(stdout, " links not printed\n" ); 91 91 assert(0); 92 92 break; 93 93 94 94 case IMFS_SYM_LINK: 95 printf(" links not printed\n" );95 fprintf(stdout, " links not printed\n" ); 96 96 assert(0); 97 97 break; 98 98 99 99 default: 100 printf(" bad type %d\n", the_jnode->type );100 fprintf(stdout, " bad type %d\n", the_jnode->type ); 101 101 assert(0); 102 102 break; … … 138 138 139 139 for ( i=0 ; i<=level ; i++ ) 140 printf("...." );140 fprintf(stdout, "...." ); 141 141 IMFS_print_jnode( the_jnode ); 142 142 if ( the_jnode->type == IMFS_DIRECTORY ) … … 157 157 void IMFS_dump( void ) 158 158 { 159 printf("*************** Dump of Entire IMFS ***************\n" );160 printf("/\n" );159 fprintf(stdout, "*************** Dump of Entire IMFS ***************\n" ); 160 fprintf(stdout, "/\n" ); 161 161 IMFS_dump_directory( rtems_filesystem_root.node_access, 0 ); 162 printf("*************** End of Dump ***************\n" );162 fprintf(stdout, "*************** End of Dump ***************\n" ); 163 163 } 164 164 -
cpukit/libfs/src/imfs/memfile.c
ra5305f6b r3b2c473 355 355 356 356 #if 0 357 printf("%d %p", block, block_entry_ptr );357 fprintf(stdout, "%d %p", block, block_entry_ptr ); 358 358 fflush(stdout); 359 359 #endif … … 779 779 return copied; 780 780 #if 0 781 printf("write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src );781 fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src ); 782 782 #endif 783 783 memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); … … 799 799 return copied; 800 800 #if 0 801 printf("write %d in %d: %*s\n", to_copy, block, to_copy, src );801 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); 802 802 #endif 803 803 memcpy( &(*block_ptr)[ 0 ], src, to_copy ); … … 821 821 return copied; 822 822 #if 0 823 printf("write %d in %d: %*s\n", to_copy, block, to_copy, src );823 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); 824 824 #endif 825 825 memcpy( &(*block_ptr)[ 0 ], src, my_length ); … … 857 857 858 858 p = IMFS_memfile_get_block_pointer_DEBUG( the_jnode, block, malloc_it ); 859 printf("(%d -> %p) ", block, p );859 fprintf(stdout, "(%d -> %p) ", block, p ); 860 860 return p; 861 861 } … … 901 901 if ( my_block <= LAST_INDIRECT ) { 902 902 #if 0 903 printf("(s %d) ", block );903 fprintf(stdout, "(s %d) ", block ); 904 904 fflush(stdout); 905 905 #endif … … 929 929 if ( my_block <= LAST_DOUBLY_INDIRECT ) { 930 930 #if 0 931 printf("(d %d) ", block );931 fprintf(stdout, "(d %d) ", block ); 932 932 fflush(stdout); 933 933 #endif … … 967 967 968 968 #if 0 969 printf("(d %d %d %d %d %p %p) ", block, my_block, doubly,969 fprintf(stdout, "(d %d %d %d %d %p %p) ", block, my_block, doubly, 970 970 singly, p, &p[singly] ); 971 971 fflush(stdout); … … 975 975 976 976 #if 0 977 printf("(t %d) ", block );977 fprintf(stdout, "(t %d) ", block ); 978 978 fflush(stdout); 979 979 #endif … … 1022 1022 1023 1023 #if 0 1024 printf("(t %d %d %d %d %d) ", block, my_block, triply, doubly, singly );1024 fprintf(stdout, "(t %d %d %d %d %d) ", block, my_block, triply, doubly, singly ); 1025 1025 fflush(stdout); 1026 1026 #endif … … 1073 1073 { 1074 1074 #if 0 1075 printf("(d %p) ", memory );1075 fprintf(stdout, "(d %p) ", memory ); 1076 1076 fflush(stdout); 1077 1077 #endif
Note: See TracChangeset
for help on using the changeset viewer.