summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxstat
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-10-13 13:44:40 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-10-13 13:44:40 +0000
commitc1b890c8bd475419a31c24f2565721cfa573a0d8 (patch)
tree95bbd32ca76be54b449157e0113050b21f4a39ba /testsuites/psxtests/psxstat
parent2011-10-13 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-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/psxstat')
-rw-r--r--testsuites/psxtests/psxstat/test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuites/psxtests/psxstat/test.c b/testsuites/psxtests/psxstat/test.c
index 0694bea533..e3b7f23b8e 100644
--- a/testsuites/psxtests/psxstat/test.c
+++ b/testsuites/psxtests/psxstat/test.c
@@ -33,6 +33,8 @@
#include <rtems/imfs.h>
#include <pmacros.h>
+#include "primode.h"
+
#define MAXSYMLINK 5 /* There needs to be a better way of getting this. */
#define TIMEOUT_VALUE ( 5 * rtems_clock_get_ticks_per_second() )
@@ -211,7 +213,7 @@ void stat_a_file_helper(
printf("\n...st_dev (0x%x:0x%x)\n", major1, minor1 );
printf( "...st_ino %" PRIxino_t "\n", statbuf.st_ino );
- printf( "...st_mode %o\n", (unsigned int) statbuf.st_mode );
+ printf( "...st_mode %" PRIomode_t "\n", statbuf.st_mode );
printf( "...st_nlink %x\n", statbuf.st_nlink );
printf( "...st_uid %d\n", statbuf.st_uid );
printf( "...st_gid %d\n", statbuf.st_gid );