From 8e843a10d84dc56fa8acb8a352bd3bf2b9eb7cfa Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Wed, 16 Jun 2010 17:30:35 +0000 Subject: =?UTF-8?q?2010-06-16=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libfs/src/rfs/rtems-rfs-inode.c: Various 64bit fixes. --- cpukit/ChangeLog | 1 + 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 + * 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 + #include #include #include @@ -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)); -- cgit v1.2.3