Changeset 620e0329 in rtems


Ignore:
Timestamp:
Nov 1, 2009, 7:53:31 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
4e17a42
Parents:
f9307ee
Message:

2009-01-01 Ralf Corsépius <ralf.corsepius@…>

  • psxfile01/test.c: Remove obsure #ifdef's. Apply PRI* macros to print struct stat fields.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psxfile01/test.c

    rf9307ee r620e0329  
    7979
    8080  printf( "....st_dev     (0x%x:0x%x)\n", major1, minor1 );
    81   printf( "....st_ino     %x  may vary by small amount\n",
    82       (unsigned int) buf->st_ino );
     81  printf( "....st_ino     %" PRIxino_t "  may vary by small amount\n", buf->st_ino );
    8382  printf( "....mode  = %08o\n", (unsigned int) buf->st_mode );
    8483  printf( "....nlink = %d\n", buf->st_nlink );
     
    9190  printf( "....ctime = %s", ctime(&buf->st_ctime) );
    9291
    93 #if defined(__svr4__) && !defined(__PPC__) && !defined(__sun__)
    94   printf( "....st_blksize %x\n", buf.st_blksize );
    95   printf( "....st_blocks  %x\n", buf.st_blocks );
    96 #endif
    97 
     92  printf( "....st_blksize %" PRIxblksize_t "\n", buf->st_blksize );
     93  printf( "....st_blocks  %" PRIxblkcnt_t "\n", buf->st_blocks );
    9894}
    9995
Note: See TracChangeset for help on using the changeset viewer.