diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-10-13 13:44:40 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-10-13 13:44:40 +0000 |
commit | c1b890c8bd475419a31c24f2565721cfa573a0d8 (patch) | |
tree | 95bbd32ca76be54b449157e0113050b21f4a39ba /testsuites/psxtests/psxfile01 | |
parent | 2011-10-13 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-c1b890c8bd475419a31c24f2565721cfa573a0d8.tar.bz2 |
2011-10-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Check for size of mode_t.
* psxfile01/test.c, psxstat/test.c: Include "primode.h".
Use PRIomode_t to print mode_t.
Diffstat (limited to 'testsuites/psxtests/psxfile01')
-rw-r--r-- | testsuites/psxtests/psxfile01/test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuites/psxtests/psxfile01/test.c b/testsuites/psxtests/psxfile01/test.c index dd6e4d0095..f6b290597e 100644 --- a/testsuites/psxtests/psxfile01/test.c +++ b/testsuites/psxtests/psxfile01/test.c @@ -40,6 +40,8 @@ #include <rtems.h> #include <rtems/libio.h> +#include "primode.h" + void test_case_reopen_append(void); char test_write_buffer[ 1024 ]; @@ -86,7 +88,7 @@ void dump_statbuf( struct stat *buf ) printf( "....st_dev (0x%x:0x%x)\n", major1, minor1 ); printf( "....st_ino %" PRIxino_t " may vary by small amount\n", buf->st_ino ); - printf( "....mode = %08o\n", (unsigned int) buf->st_mode ); + printf( "....mode = %08" PRIomode_t "\n", buf->st_mode ); printf( "....nlink = %d\n", buf->st_nlink ); printf( "....uid = %d\n", buf->st_uid ); |