Changeset 8ed7d0a in rtems


Ignore:
Timestamp:
Oct 25, 2011, 3:12:08 PM (8 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
41909de
Parents:
12935408
Message:

2011-10-25 Ralf Corsépius <ralf.corsepius@…>

  • psxreaddir/test.c: Remove bogus casts. Fix fprintf format strings.
Location:
testsuites/psxtests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    r12935408 r8ed7d0a  
     12011-10-25      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * psxreaddir/test.c: Remove bogus casts.
     4        Fix fprintf format strings.
     5
    162011-10-22      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • testsuites/psxtests/psxreaddir/test.c

    r12935408 r8ed7d0a  
    6666
    6767  while (d) {
    68     printf( "%-20s %8d %8d %6d   0x%04x\n",
    69        d->d_name, (int)d->d_ino, (int)d->d_off, d->d_reclen, d->d_type );
     68    printf( "%-20s %8ld %8" PRIdoff_t " %6d   0x%04x\n",
     69       d->d_name, d->d_ino, d->d_off, d->d_reclen, d->d_type );
    7070    d = readdir(directory);
    7171
     
    421421  printf( "\nSeek directory\n" );
    422422  printf( "telldir() should report only sizeof(struct dirent) increments \n" );
    423   printf( "in position. Sizeof(struct dirent): %ld\n",
    424                           (unsigned long) sizeof(struct dirent) );
     423  printf( "in position. Sizeof(struct dirent): %zd\n",
     424                          sizeof(struct dirent) );
    425425  rewinddir( directory );
    426426  for( off=0 ; off<=200 ; off=off + sizeof(struct dirent) / 4 ) {
    427427    seekdir( directory, off );
    428428    printf(
    429        "seeked to %2d -- currently at %2d\n",
    430        (int)off,
    431        (int)telldir(directory)
     429       "seeked to %2" PRIdoff_t " -- currently at %2ld\n",
     430       off,
     431       telldir(directory)
    432432    );
    433433  }
Note: See TracChangeset for help on using the changeset viewer.