diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-01 07:53:31 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-01 07:53:31 +0000 |
commit | 620e03299e607d3b9106dee783df0d9b27e3a163 (patch) | |
tree | e40013d5d5bc1b057d28f195e65c5030eb981e03 /testsuites | |
parent | 2009-01-01 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-620e03299e607d3b9106dee783df0d9b27e3a163.tar.bz2 |
2009-01-01 Ralf Corsépius <ralf.corsepius@rtems.org>
* psxfile01/test.c: Remove obsure #ifdef's.
Apply PRI* macros to print struct stat fields.
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/psxtests/psxfile01/test.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/testsuites/psxtests/psxfile01/test.c b/testsuites/psxtests/psxfile01/test.c index 92590a35c6..45e1967f33 100644 --- a/testsuites/psxtests/psxfile01/test.c +++ b/testsuites/psxtests/psxfile01/test.c @@ -78,8 +78,7 @@ void dump_statbuf( struct stat *buf ) rtems_filesystem_split_dev_t( buf->st_rdev, major2, minor2 ); printf( "....st_dev (0x%x:0x%x)\n", major1, minor1 ); - printf( "....st_ino %x may vary by small amount\n", - (unsigned int) buf->st_ino ); + printf( "....st_ino %" PRIxino_t " may vary by small amount\n", buf->st_ino ); printf( "....mode = %08o\n", (unsigned int) buf->st_mode ); printf( "....nlink = %d\n", buf->st_nlink ); @@ -90,11 +89,8 @@ void dump_statbuf( struct stat *buf ) printf( "....mtime = %s", ctime(&buf->st_mtime) ); printf( "....ctime = %s", ctime(&buf->st_ctime) ); -#if defined(__svr4__) && !defined(__PPC__) && !defined(__sun__) - printf( "....st_blksize %x\n", buf.st_blksize ); - printf( "....st_blocks %x\n", buf.st_blocks ); -#endif - + printf( "....st_blksize %" PRIxblksize_t "\n", buf->st_blksize ); + printf( "....st_blocks %" PRIxblkcnt_t "\n", buf->st_blocks ); } void stat_a_file( |