forked from Imagelibrary/rtems
2009-01-01 Ralf Corsépius <ralf.corsepius@rtems.org>
* psxstat/test.c: Apply PRI* macros to print struct stat fields.
This commit is contained in:
@@ -196,18 +196,18 @@ void stat_a_file(
|
|||||||
|
|
||||||
|
|
||||||
printf("\n...st_dev (0x%x:0x%x)\n", major1, minor1 );
|
printf("\n...st_dev (0x%x:0x%x)\n", major1, minor1 );
|
||||||
printf( "...st_ino %x\n", (int) statbuf.st_ino );
|
printf( "...st_ino %" PRIxino_t "\n", statbuf.st_ino );
|
||||||
printf( "...st_mode %o\n", (unsigned int) statbuf.st_mode );
|
printf( "...st_mode %o\n", (unsigned int) statbuf.st_mode );
|
||||||
printf( "...st_nlink %x\n", statbuf.st_nlink );
|
printf( "...st_nlink %x\n", statbuf.st_nlink );
|
||||||
printf( "...st_uid %d\n", statbuf.st_uid );
|
printf( "...st_uid %d\n", statbuf.st_uid );
|
||||||
printf( "...st_gid %d\n", statbuf.st_gid );
|
printf( "...st_gid %d\n", statbuf.st_gid );
|
||||||
printf( "...st_rdev (0x%x:0x%x)\n", major2, minor2 );
|
printf( "...st_rdev (0x%x:0x%x)\n", major2, minor2 );
|
||||||
printf( "...st_size %d\n",(unsigned int) statbuf.st_size );
|
printf( "...st_size %" PRIdoff_t "\n", statbuf.st_size );
|
||||||
printf( "...st_atime %s", ctime( &statbuf.st_atime ) );
|
printf( "...st_atime %s", ctime( &statbuf.st_atime ) );
|
||||||
printf( "...st_mtime %s", ctime( &statbuf.st_mtime ) );
|
printf( "...st_mtime %s", ctime( &statbuf.st_mtime ) );
|
||||||
printf( "...st_ctime %s", ctime( &statbuf.st_ctime ) );
|
printf( "...st_ctime %s", ctime( &statbuf.st_ctime ) );
|
||||||
printf( "...st_blksize %lx\n", statbuf.st_blksize );
|
printf( "...st_blksize %" PRIxblksize_t "\n", statbuf.st_blksize );
|
||||||
printf( "...st_blocks %lx\n", statbuf.st_blocks );
|
printf( "...st_blocks %" PRIxblkcnt_t "\n", statbuf.st_blocks );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user