diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-06-16 17:30:35 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-06-16 17:30:35 +0000 |
commit | 8e843a10d84dc56fa8acb8a352bd3bf2b9eb7cfa (patch) | |
tree | d60a0d039768eb7f5cd286475325080e83411a66 /cpukit | |
parent | 2010-06-16 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-8e843a10d84dc56fa8acb8a352bd3bf2b9eb7cfa.tar.bz2 |
2010-06-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/rfs/rtems-rfs-inode.c: Various 64bit fixes.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 1 | ||||
-rw-r--r-- | cpukit/libfs/src/rfs/rtems-rfs-inode.c | 12 |
2 files changed, 8 insertions, 5 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index abaf1b14b7..69e306f94e 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,6 @@ 2010-06-16 Ralf Corsépius <ralf.corsepius@rtems.org> + * libfs/src/rfs/rtems-rfs-inode.c: Various 64bit fixes. * libfs/src/rfs/rtems-rfs-rtems.c: Various 64bit fixes. Add PRIomode_t. * libfs/src/rfs/rtems-rfs-buffer-bdbuf.c: diff --git a/cpukit/libfs/src/rfs/rtems-rfs-inode.c b/cpukit/libfs/src/rfs/rtems-rfs-inode.c index 3b3fe82ff9..030ee82102 100644 --- a/cpukit/libfs/src/rfs/rtems-rfs-inode.c +++ b/cpukit/libfs/src/rfs/rtems-rfs-inode.c @@ -22,6 +22,8 @@ #include "config.h" #endif +#include <inttypes.h> + #include <rtems/rfs/rtems-rfs-block.h> #include <rtems/rfs/rtems-rfs-file-system.h> #include <rtems/rfs/rtems-rfs-inode.h> @@ -60,7 +62,7 @@ rtems_rfs_inode_open (rtems_rfs_file_system* fs, int rc; if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_OPEN)) - printf ("rtems-rfs: inode-open: ino: %lu\n", ino); + printf ("rtems-rfs: inode-open: ino: %" PRIu32 "\n", ino); if (ino == RTEMS_RFS_EMPTY_INO) return EINVAL; @@ -93,7 +95,7 @@ rtems_rfs_inode_close (rtems_rfs_file_system* fs, int rc; if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CLOSE)) - printf ("rtems-rfs: inode-close: ino: %lu\n", handle->ino); + printf ("rtems-rfs: inode-close: ino: %" PRIu32 "\n", handle->ino); rc = rtems_rfs_inode_unload (fs, handle, true); @@ -114,7 +116,7 @@ rtems_rfs_inode_load (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* handle) { if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_LOAD)) - printf ("rtems-rfs: inode-load: ino=%lu loads=%i loaded=%s\n", + printf ("rtems-rfs: inode-load: ino=%" PRIu32 " loads=%i loaded=%s\n", handle->ino, handle->loads, rtems_rfs_inode_is_loaded (handle) ? "yes" : "no"); @@ -148,7 +150,7 @@ rtems_rfs_inode_unload (rtems_rfs_file_system* fs, int rc = 0; if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_UNLOAD)) - printf ("rtems-rfs: inode-unload: ino=%lu loads=%i loaded=%s\n", + printf ("rtems-rfs: inode-unload: ino=%" PRIu32 " loads=%i loaded=%s\n", handle->ino, handle->loads, rtems_rfs_inode_is_loaded (handle) ? "yes" : "no"); @@ -203,7 +205,7 @@ rtems_rfs_inode_create (rtems_rfs_file_system* fs, type = "file"; else if (RTEMS_RFS_S_ISLNK (mode)) type = "link"; - printf("rtems-rfs: inode-create: parent:%lu name:", parent); + printf("rtems-rfs: inode-create: parent:%" PRIu32 " name:", parent); for (c = 0; c < length; c++) printf ("%c", name[c]); printf (" type:%s mode:%04x (%03o)\n", type, mode, mode & ((1 << 10) - 1)); |