Changeset 3b2c473 in rtems


Ignore:
Timestamp:
04/17/04 08:39:22 (19 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
05279b84
Parents:
a5305f6b
Message:

2004-04-17 Ralf Corsepius <ralf_corsepius@…>

  • libfs/src/imfs/imfs_debug.c, libfs/src/imfs/memfile.c: Use fprintf(stdout,...) instead of printf.
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    ra5305f6b r3b2c473  
     12004-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
    162004-04-17      Ralf Corsepius <ralf_corsepius@rtems.org>
    27
  • cpukit/libfs/src/imfs/imfs_debug.c

    ra5305f6b r3b2c473  
    5555  assert( the_jnode );
    5656
    57   printf( "%s", the_jnode->name );
     57  fprintf(stdout, "%s", the_jnode->name );
    5858  switch( the_jnode->type ) {
    5959    case IMFS_DIRECTORY:
    60       printf( "/" );
     60      fprintf(stdout, "/" );
    6161      break;
    6262
    6363    case IMFS_DEVICE:
    64       printf( " (device %d, %d)",
     64      fprintf(stdout, " (device %d, %d)",
    6565        the_jnode->info.device.major, the_jnode->info.device.minor );
    6666      break;
    6767
    6868    case IMFS_LINEAR_FILE:
    69       printf( " (file %d %p)",
     69      fprintf(stdout, " (file %d %p)",
    7070        (int)the_jnode->info.linearfile.size,
    7171        the_jnode->info.linearfile.direct
     
    7676      /* Useful when debugging .. varies between targets  */
    7777#if 0
    78       printf( " (file %d %p %p %p)",
     78      fprintf(stdout, " (file %d %p %p %p)",
    7979        (int)the_jnode->info.file.size,
    8080        the_jnode->info.file.indirect,
     
    8383      );
    8484#else
    85       printf( " (file %d)", (int)the_jnode->info.file.size );
     85      fprintf(stdout, " (file %d)", (int)the_jnode->info.file.size );
    8686#endif
    8787      break;
    8888
    8989    case IMFS_HARD_LINK:
    90       printf( " links not printed\n" );
     90      fprintf(stdout, " links not printed\n" );
    9191      assert(0);
    9292      break;
    9393
    9494    case IMFS_SYM_LINK:
    95       printf( " links not printed\n" );
     95      fprintf(stdout, " links not printed\n" );
    9696      assert(0);
    9797      break;
    9898
    9999    default:
    100       printf( " bad type %d\n", the_jnode->type );
     100      fprintf(stdout, " bad type %d\n", the_jnode->type );
    101101      assert(0);
    102102      break;
     
    138138
    139139    for ( i=0 ; i<=level ; i++ )
    140       printf( "...." );
     140      fprintf(stdout, "...." );
    141141    IMFS_print_jnode( the_jnode );
    142142    if ( the_jnode->type == IMFS_DIRECTORY )
     
    157157void IMFS_dump( void )
    158158{
    159   printf( "*************** Dump of Entire IMFS ***************\n" );
    160   printf( "/\n" );
     159  fprintf(stdout, "*************** Dump of Entire IMFS ***************\n" );
     160  fprintf(stdout, "/\n" );
    161161  IMFS_dump_directory( rtems_filesystem_root.node_access, 0 );
    162   printf( "***************       End of Dump        ***************\n" );
     162  fprintf(stdout, "***************       End of Dump        ***************\n" );
    163163}
    164164
  • cpukit/libfs/src/imfs/memfile.c

    ra5305f6b r3b2c473  
    355355
    356356#if 0
    357   printf( "%d %p", block, block_entry_ptr );
     357  fprintf(stdout, "%d %p", block, block_entry_ptr );
    358358    fflush(stdout);
    359359#endif
     
    779779      return copied;
    780780#if 0
    781 printf( "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src );
     781fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src );
    782782#endif
    783783    memcpy( &(*block_ptr)[ start_offset ], src, to_copy );
     
    799799      return copied;
    800800#if 0
    801 printf( "write %d in %d: %*s\n", to_copy, block, to_copy, src );
     801fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
    802802#endif
    803803    memcpy( &(*block_ptr)[ 0 ], src, to_copy );
     
    821821      return copied;
    822822#if 0
    823 printf( "write %d in %d: %*s\n", to_copy, block, to_copy, src );
     823fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
    824824#endif
    825825    memcpy( &(*block_ptr)[ 0 ], src, my_length );
     
    857857
    858858  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 );
    860860  return p;
    861861}
     
    901901  if ( my_block <= LAST_INDIRECT ) {
    902902#if 0
    903 printf( "(s %d) ", block );
     903fprintf(stdout, "(s %d) ", block );
    904904fflush(stdout);
    905905#endif
     
    929929  if ( my_block <= LAST_DOUBLY_INDIRECT ) {
    930930#if 0
    931 printf( "(d %d) ", block );
     931fprintf(stdout, "(d %d) ", block );
    932932fflush(stdout);
    933933#endif
     
    967967
    968968#if 0
    969 printf( "(d %d %d %d %d %p %p) ", block, my_block, doubly,
     969fprintf(stdout, "(d %d %d %d %d %p %p) ", block, my_block, doubly,
    970970                                       singly, p, &p[singly] );
    971971fflush(stdout);
     
    975975
    976976#if 0
    977 printf( "(t %d) ", block );
     977fprintf(stdout, "(t %d) ", block );
    978978fflush(stdout);
    979979#endif
     
    10221022
    10231023#if 0
    1024 printf( "(t %d %d %d %d %d) ", block, my_block, triply, doubly, singly );
     1024fprintf(stdout, "(t %d %d %d %d %d) ", block, my_block, triply, doubly, singly );
    10251025fflush(stdout);
    10261026#endif
     
    10731073{
    10741074#if 0
    1075 printf( "(d %p) ", memory );
     1075fprintf(stdout, "(d %p) ", memory );
    10761076fflush(stdout);
    10771077#endif
Note: See TracChangeset for help on using the changeset viewer.