Changeset 7a20394 in rtems


Ignore:
Timestamp:
Nov 1, 2009, 7:55:21 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
1901ba47
Parents:
d00a1abc
Message:

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

  • psxstat/test.c: Apply PRI* macros to print struct stat fields.
File:
1 edited

Legend:

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

    rd00a1abc r7a20394  
    197197
    198198    printf("\n...st_dev     (0x%x:0x%x)\n", major1, minor1 );
    199     printf(  "...st_ino     %x\n", (int) statbuf.st_ino );
     199    printf(  "...st_ino     %" PRIxino_t "\n", statbuf.st_ino );
    200200    printf(  "...st_mode    %o\n", (unsigned int) statbuf.st_mode );
    201201    printf(  "...st_nlink   %x\n", statbuf.st_nlink );
     
    203203    printf(  "...st_gid     %d\n", statbuf.st_gid );
    204204    printf(  "...st_rdev    (0x%x:0x%x)\n", major2, minor2 );
    205     printf(  "...st_size    %d\n",(unsigned int) statbuf.st_size );
     205    printf(  "...st_size    %" PRIdoff_t "\n", statbuf.st_size );
    206206    printf(  "...st_atime   %s", ctime( &statbuf.st_atime ) );
    207207    printf(  "...st_mtime   %s", ctime( &statbuf.st_mtime ) );
    208208    printf(  "...st_ctime   %s", ctime( &statbuf.st_ctime ) );
    209     printf(  "...st_blksize %lx\n", statbuf.st_blksize );
    210     printf(  "...st_blocks  %lx\n", statbuf.st_blocks );
     209    printf(  "...st_blksize %" PRIxblksize_t "\n", statbuf.st_blksize );
     210    printf(  "...st_blocks  %" PRIxblkcnt_t "\n", statbuf.st_blocks );
    211211  }
    212212}
Note: See TracChangeset for help on using the changeset viewer.