diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-06-15 23:34:56 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-06-15 23:34:56 +0000 |
commit | 9a783b71fb3ea5651fcf8be02e093a86110db981 (patch) | |
tree | 66c76dd8da8f9f1d050aeaad31376005074cc3ed /cpukit/libfs/src/rfs/rtems-rfs-link.c | |
parent | eaac03a4e4fc878d81bb9cbdcb569088d495c42d (diff) |
2010-06-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/rfs/rtems-rfs-dir.c: Various 64bit compatibility fixes.
Add PRIdoff_t.
Remove stray "\"s.
* libfs/src/rfs/rtems-rfs-link.c: Various 64bit compatibility fixes.
Diffstat (limited to 'cpukit/libfs/src/rfs/rtems-rfs-link.c')
-rw-r--r-- | cpukit/libfs/src/rfs/rtems-rfs-link.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-link.c b/cpukit/libfs/src/rfs/rtems-rfs-link.c index 88615988f8..27a08153b9 100644 --- a/cpukit/libfs/src/rfs/rtems-rfs-link.c +++ b/cpukit/libfs/src/rfs/rtems-rfs-link.c @@ -22,6 +22,8 @@ #include "config.h" #endif +#include <inttypes.h> + #include <rtems/rfs/rtems-rfs-block.h> #include <rtems/rfs/rtems-rfs-buffer.h> #include <rtems/rfs/rtems-rfs-file-system.h> @@ -46,10 +48,10 @@ rtems_rfs_link (rtems_rfs_file_system* fs, if (rtems_rfs_trace (RTEMS_RFS_TRACE_LINK)) { int c; - printf ("rtems-rfs: link: parent(%lu) -> ", parent); + printf ("rtems-rfs: link: parent(%" PRIu32 ") -> ", parent); for (c = 0; c < length; c++) printf ("%c", name[c]); - printf ("(%lu)\n", target); + printf ("(%" PRIu32 ")\n", target); } rc = rtems_rfs_inode_open (fs, target, &target_inode, true); @@ -118,7 +120,7 @@ rtems_rfs_unlink (rtems_rfs_file_system* fs, int rc; if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK)) - printf ("rtems-rfs: unlink: parent(%lu) -X-> (%lu)\n", parent, target); + printf ("rtems-rfs: unlink: parent(%" PRIu32 ") -X-> (%" PRIu32 ")\n", parent, target); rc = rtems_rfs_inode_open (fs, target, &target_inode, true); if (rc) @@ -179,7 +181,7 @@ rtems_rfs_unlink (rtems_rfs_file_system* fs, links = rtems_rfs_inode_get_links (&target_inode); if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK)) - printf ("rtems-rfs: unlink: target:%lu links:%u\n", target, links); + printf ("rtems-rfs: unlink: target:%" PRIu32 " links:%u\n", target, links); if (links > 1) { @@ -258,7 +260,7 @@ rtems_rfs_symlink (rtems_rfs_file_system* fs, if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK)) { int c; - printf ("rtems-rfs: symlink: parent:%lu name:", parent); + printf ("rtems-rfs: symlink: parent:%" PRIu32 " name:", parent); for (c = 0; c < length; c++) printf ("%c", name[c]); printf (" link:"); @@ -367,7 +369,7 @@ rtems_rfs_symlink_read (rtems_rfs_file_system* fs, int rc; if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK_READ)) - printf ("rtems-rfs: symlink-read: link:%lu\n", link); + printf ("rtems-rfs: symlink-read: link:%" PRIu32 "\n", link); rc = rtems_rfs_inode_open (fs, link, &inode, true); if (rc) |