From 7a20394f99d2da11d7adb9df39f749e1069d619a Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sun, 1 Nov 2009 07:55:21 +0000 Subject: =?UTF-8?q?2009-01-01=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * psxstat/test.c: Apply PRI* macros to print struct stat fields. --- testsuites/psxtests/psxstat/test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'testsuites/psxtests/psxstat') diff --git a/testsuites/psxtests/psxstat/test.c b/testsuites/psxtests/psxstat/test.c index 1553142c51..3f4c2e9481 100644 --- a/testsuites/psxtests/psxstat/test.c +++ b/testsuites/psxtests/psxstat/test.c @@ -196,18 +196,18 @@ void stat_a_file( 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_nlink %x\n", statbuf.st_nlink ); printf( "...st_uid %d\n", statbuf.st_uid ); printf( "...st_gid %d\n", statbuf.st_gid ); 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_mtime %s", ctime( &statbuf.st_mtime ) ); printf( "...st_ctime %s", ctime( &statbuf.st_ctime ) ); - printf( "...st_blksize %lx\n", statbuf.st_blksize ); - printf( "...st_blocks %lx\n", statbuf.st_blocks ); + printf( "...st_blksize %" PRIxblksize_t "\n", statbuf.st_blksize ); + printf( "...st_blocks %" PRIxblkcnt_t "\n", statbuf.st_blocks ); } } -- cgit v1.2.3