<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2010-06-15)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
<font color='#225522'><em>(on branch rtems-4-10-branch)</em></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>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.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2395&r2=text&tr2=1.2396&diff_format=h">M</a></td><td width='1%'>1.2396</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2346.2.17&r2=text&tr2=1.2346.2.18&diff_format=h">M</a></td><td width='1%'>1.2346.2.18</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/rfs/rtems-rfs-dir.c.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>cpukit/libfs/src/rfs/rtems-rfs-dir.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/rfs/rtems-rfs-dir.c.diff?r1=text&tr1=1.6&r2=text&tr2=1.6.2.1&diff_format=h">M</a></td><td width='1%'>1.6.2.1</td><td width='100%'>cpukit/libfs/src/rfs/rtems-rfs-dir.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/rfs/rtems-rfs-link.c.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>cpukit/libfs/src/rfs/rtems-rfs-link.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/rfs/rtems-rfs-link.c.diff?r1=text&tr1=1.3&r2=text&tr2=1.3.2.1&diff_format=h">M</a></td><td width='1%'>1.3.2.1</td><td width='100%'>cpukit/libfs/src/rfs/rtems-rfs-link.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2395 rtems/cpukit/ChangeLog:1.2396
--- rtems/cpukit/ChangeLog:1.2395 Tue Jun 15 17:45:17 2010
+++ rtems/cpukit/ChangeLog Tue Jun 15 18:34:55 2010
</font><font color='#997700'>@@ -1,3 +1,10 @@
</font><font color='#000088'>+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.
+
</font> 2010-06-15 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1561/cpukit
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2346.2.17 rtems/cpukit/ChangeLog:1.2346.2.18
--- rtems/cpukit/ChangeLog:1.2346.2.17 Tue Jun 15 10:17:42 2010
+++ rtems/cpukit/ChangeLog Tue Jun 15 18:35:04 2010
</font><font color='#997700'>@@ -1,5 +1,12 @@
</font> 2010-06-15 Ralf Corsépius <ralf.corsepius@rtems.org>
<font color='#000088'>+ * 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.
+
+2010-06-15 Ralf Corsépius <ralf.corsepius@rtems.org>
+
</font> * libfs/src/rfs/rtems-rfs-file-system.h: Remove bogus typecast.
* libfs/src/rfs/rtems-rfs-block.c, libfs/src/rfs/rtems-rfs-buffer.c,
libnetworking/nfs/bootp_subr.c: Misc. 64bit-compatibility fixes.
<font color='#006600'>diff -u rtems/cpukit/libfs/src/rfs/rtems-rfs-dir.c:1.6 rtems/cpukit/libfs/src/rfs/rtems-rfs-dir.c:1.7
--- rtems/cpukit/libfs/src/rfs/rtems-rfs-dir.c:1.6 Mon Apr 12 00:29:25 2010
+++ rtems/cpukit/libfs/src/rfs/rtems-rfs-dir.c Tue Jun 15 18:34:56 2010
</font><font color='#997700'>@@ -29,6 +29,16 @@
</font> #include "config.h"
#endif
<font color='#000088'>+#include <inttypes.h>
+
+#if SIZEOF_OFF_T == 8
+#define PRIdoff_t PRIo64
+#elif SIZEOF_OFF_T == 4
+#define PRIdoff_t PRIo32
+#else
+#error "unsupported size of off_t"
+#endif
+
</font> #include <rtems/rfs/rtems-rfs-block.h>
#include <rtems/rfs/rtems-rfs-buffer.h>
#include <rtems/rfs/rtems-rfs-file-system.h>
<font color='#997700'>@@ -58,7 +68,7 @@
</font> if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
{
int c;
<font color='#880000'>- printf ("rtems-rfs: dir-lookup-ino: lookup ino: root=%ld, path=",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-lookup-ino: lookup ino: root=%" PRId32 ", path=",
</font> inode->ino);
for (c = 0; c < length; c++)
printf ("%c", name[c]);
<font color='#997700'>@@ -72,7 +82,7 @@
</font> if (rc > 0)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
<font color='#880000'>- printf ("rtems-rfs: dir-lookup-ino: map open failed for ino %lu: %d: %s",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-lookup-ino: map open failed for ino %" PRIu32 ": %d: %s",
</font> rtems_rfs_inode_ino (inode), rc, strerror (rc));
return rc;
}
<font color='#997700'>@@ -81,7 +91,7 @@
</font> if (rc > 0)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
<font color='#880000'>- printf ("rtems-rfs: dir-lookup-ino: handle open failed for ino %lu: %d: %s",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-lookup-ino: handle open failed for ino %" PRIu32 ": %d: %s",
</font> rtems_rfs_inode_ino (inode), rc, strerror (rc));
rtems_rfs_block_map_close (fs, &map);
return rc;
<font color='#997700'>@@ -121,7 +131,7 @@
</font> if (rc > 0)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
<font color='#880000'>- printf ("rtems-rfs: dir-lookup-ino: block read, ino=%lu block=%ld: %d: %s\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-lookup-ino: block read, ino=%" PRIu32 " block=%" PRId32 ": %d: %s\n",
</font> rtems_rfs_inode_ino (inode), block, rc, strerror (rc));
break;
}
<font color='#997700'>@@ -150,8 +160,8 @@
</font> if (rtems_rfs_dir_entry_valid (fs, elength, *ino))
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
<font color='#880000'>- printf ("rtems-rfs: dir-lookup-ino: " \
- "bad length or ino for ino %lu: %u/%ld @ %04lx\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-lookup-ino: "
+ "bad length or ino for ino %" PRIu32 ": %u/%" PRId32 " @ %04" PRIx32 "\n",
</font> rtems_rfs_inode_ino (inode), elength, *ino, map.bpos.boff);
rc = EIO;
break;
<font color='#997700'>@@ -160,8 +170,8 @@
</font> if (ehash == hash)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK))
<font color='#880000'>- printf ("rtems-rfs: dir-lookup-ino: " \
- "checking entry for ino %ld: off=%04lx length:%d ino:%ld\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-lookup-ino: "
+ "checking entry for ino %" PRId32 ": off=%04" PRIx32 " length:%d ino:%" PRId32 "\n",
</font> rtems_rfs_inode_ino (inode), map.bpos.boff,
elength, rtems_rfs_dir_entry_ino (entry));
<font color='#997700'>@@ -170,8 +180,8 @@
</font> *offset = rtems_rfs_block_map_pos (fs, &map);
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_FOUND))
<font color='#880000'>- printf ("rtems-rfs: dir-lookup-ino: " \
- "entry found in ino %lu, ino=%lu offset=%lu\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-lookup-ino: "
+ "entry found in ino %" PRIu32 ", ino=%" PRIu32 " offset=%" PRIu32 "\n",
</font> rtems_rfs_inode_ino (inode), *ino, *offset);
rtems_rfs_buffer_handle_close (fs, &entries);
<font color='#997700'>@@ -190,8 +200,8 @@
</font> if ((rc > 0) && (rc != ENXIO))
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
<font color='#880000'>- printf ("rtems-rfs: dir-lookup-ino: " \
- "block map next block failed in ino %lu: %d: %s\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-lookup-ino: "
+ "block map next block failed in ino %" PRIu32 ": %d: %s\n",
</font> rtems_rfs_inode_ino (inode), rc, strerror (rc));
}
if (rc == ENXIO)
<font color='#997700'>@@ -203,7 +213,7 @@
</font> {
rc = EIO;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
<font color='#880000'>- printf ("rtems-rfs: dir-lookup-ino: block is 0 in ino %lu: %d: %s\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-lookup-ino: block is 0 in ino %" PRIu32 ": %d: %s\n",
</font> rtems_rfs_inode_ino (inode), rc, strerror (rc));
}
}
<font color='#997700'>@@ -228,7 +238,7 @@
</font> if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))
{
int c;
<font color='#880000'>- printf ("rtems-rfs: dir-add-entry: dir=%ld, name=",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-add-entry: dir=%" PRId32 ", name=",
</font> rtems_rfs_inode_ino (dir));
for (c = 0; c < length; c++)
printf ("%c", name[c]);
<font color='#997700'>@@ -269,8 +279,8 @@
</font> if (rc != ENXIO)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))
<font color='#880000'>- printf ("rtems-rfs: dir-add-entry: " \
- "block map find failed for ino %lu: %d: %s\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-add-entry: "
+ "block map find failed for ino %" PRIu32 ": %d: %s\n",
</font> rtems_rfs_inode_ino (dir), rc, strerror (rc));
break;
}
<font color='#997700'>@@ -282,8 +292,8 @@
</font> if (rc > 0)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))
<font color='#880000'>- printf ("rtems-rfs: dir-add-entry: " \
- "block map grow failed for ino %lu: %d: %s\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-add-entry: "
+ "block map grow failed for ino %" PRIu32 ": %d: %s\n",
</font> rtems_rfs_inode_ino (dir), rc, strerror (rc));
break;
}
<font color='#997700'>@@ -297,8 +307,8 @@
</font> if (rc > 0)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))
<font color='#880000'>- printf ("rtems-rfs: dir-add-entry: " \
- "block buffer req failed for ino %lu: %d: %s\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-add-entry: "
+ "block buffer req failed for ino %" PRIu32 ": %d: %s\n",
</font> rtems_rfs_inode_ino (dir), rc, strerror (rc));
break;
}
<font color='#997700'>@@ -342,8 +352,8 @@
</font> if (rtems_rfs_dir_entry_valid (fs, elength, eino))
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))
<font color='#880000'>- printf ("rtems-rfs: dir-add-entry: " \
- "bad length or ino for ino %lu: %u/%ld @ %04x\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-add-entry: "
+ "bad length or ino for ino %" PRIu32 ": %u/%" PRId32 " @ %04x\n",
</font> rtems_rfs_inode_ino (dir), elength, eino, offset);
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
<font color='#997700'>@@ -373,9 +383,9 @@
</font> int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))
<font color='#880000'>- printf ("rtems-rfs: dir-del-entry: dir=%ld, entry=%ld offset=%lu\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-del-entry: dir=%" PRId32 ", entry=%" PRId32 " offset=%" PRIu32 "\n",
</font> rtems_rfs_inode_ino (dir), ino, offset);
<font color='#880000'>-<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+
</font> rc = rtems_rfs_block_map_open (fs, dir, &map);
if (rc > 0)
return rc;
<font color='#997700'>@@ -410,8 +420,8 @@
</font> if (rc > 0)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))
<font color='#880000'>- printf ("rtems-rfs: dir-del-entry: " \
- "block buffer req failed for ino %lu: %d: %s\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-del-entry: "
+ "block buffer req failed for ino %" PRIu32 ": %d: %s\n",
</font> rtems_rfs_inode_ino (dir), rc, strerror (rc));
break;
}
<font color='#997700'>@@ -433,13 +443,13 @@
</font> if (rtems_rfs_dir_entry_valid (fs, elength, eino))
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))
<font color='#880000'>- printf ("rtems-rfs: dir-del-entry: " \
- "bad length or ino for ino %lu: %u/%ld @ %04x\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-del-entry: "
+ "bad length or ino for ino %" PRIu32 ": %u/%" PRId32 " @ %04x\n",
</font> rtems_rfs_inode_ino (dir), elength, eino, offset);
rc = EIO;
break;
}
<font color='#880000'>-<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+
</font> if (ino == rtems_rfs_dir_entry_ino (entry))
{
uint32_t remaining;
<font color='#997700'>@@ -457,8 +467,8 @@
</font> elength = rtems_rfs_dir_entry_length (entry);
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))
<font color='#880000'>- printf ("rtems-rfs: dir-del-entry: " \
- "last block free for ino %lu: elength=%i offset=%d last=%s\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-del-entry: "
+ "last block free for ino %" PRIu32 ": elength=%i offset=%d last=%s\n",
</font> ino, elength, offset,
rtems_rfs_block_map_last (&map) ? "yes" : "no");
<font color='#997700'>@@ -469,8 +479,8 @@
</font> if (rc > 0)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))
<font color='#880000'>- printf ("rtems-rfs: dir-del-entry: " \
- "block map shrink failed for ino %lu: %d: %s\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-del-entry: "
+ "block map shrink failed for ino %" PRIu32 ": %d: %s\n",
</font> rtems_rfs_inode_ino (dir), rc, strerror (rc));
}
}
<font color='#997700'>@@ -517,7 +527,7 @@
</font> int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
<font color='#880000'>- printf ("rtems-rfs: dir-read: dir=%ld offset=%Ld\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-read: dir=%" PRId32 " offset=%" PRId64 "\n",
</font> rtems_rfs_inode_ino (dir), offset);
*length = 0;
<font color='#997700'>@@ -577,8 +587,8 @@
</font> if (rtems_rfs_dir_entry_valid (fs, elength, eino))
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
<font color='#880000'>- printf ("rtems-rfs: dir-read: " \
- "bad length or ino for ino %lu: %u/%ld @ %04lx\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-read: "
+ "bad length or ino for ino %" PRIu32 ": %u/%" PRId32 " @ %04" PRIx32 "\n",
</font> rtems_rfs_inode_ino (dir), elength, eino, map.bpos.boff);
rc = EIO;
break;
<font color='#997700'>@@ -608,16 +618,16 @@
</font> dirent->d_namlen = elength;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
<font color='#880000'>- printf ("rtems-rfs: dir-read: found off:%Ld ino:%ld name=%s\n",
- (uint64_t) dirent->d_off, dirent->d_ino, dirent->d_name);
</font><font color='#000088'>+ printf ("rtems-rfs: dir-read: found off:%" PRIdoff_t " ino:%ld name=%s\n",
+ dirent->d_off, dirent->d_ino, dirent->d_name);
</font> break;
}
*length += rtems_rfs_fs_block_size (fs) - map.bpos.boff;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
<font color='#880000'>- printf ("rtems-rfs: dir-read: next block: off:%ld length:%zd\n",
- (uint32_t) offset, *length);
</font><font color='#000088'>+ printf ("rtems-rfs: dir-read: next block: off:%" PRId64 " length:%zd\n",
+ offset, *length);
</font>
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
if (rc == ENXIO)
<font color='#997700'>@@ -640,7 +650,7 @@
</font> int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
<font color='#880000'>- printf ("rtems-rfs: dir-empty: dir=%ld\n", rtems_rfs_inode_ino (dir));
</font><font color='#000088'>+ printf ("rtems-rfs: dir-empty: dir=%" PRId32 "\n", rtems_rfs_inode_ino (dir));
</font>
empty = true;
<font color='#997700'>@@ -692,8 +702,8 @@
</font> if (rtems_rfs_dir_entry_valid (fs, elength, eino))
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_EMPTY))
<font color='#880000'>- printf ("rtems-rfs: dir-empty: " \
- "bad length or ino for ino %lu: %u/%ld @ %04x\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-empty: "
+ "bad length or ino for ino %" PRIu32 ": %u/%" PRIu32 " @ %04x\n",
</font> rtems_rfs_inode_ino (dir), elength, eino, offset);
rc = EIO;
break;
<font color='#006600'>diff -u rtems/cpukit/libfs/src/rfs/rtems-rfs-dir.c:1.6 rtems/cpukit/libfs/src/rfs/rtems-rfs-dir.c:1.6.2.1
--- rtems/cpukit/libfs/src/rfs/rtems-rfs-dir.c:1.6 Mon Apr 12 00:29:25 2010
+++ rtems/cpukit/libfs/src/rfs/rtems-rfs-dir.c Tue Jun 15 18:35:05 2010
</font><font color='#997700'>@@ -29,6 +29,16 @@
</font> #include "config.h"
#endif
<font color='#000088'>+#include <inttypes.h>
+
+#if SIZEOF_OFF_T == 8
+#define PRIdoff_t PRIo64
+#elif SIZEOF_OFF_T == 4
+#define PRIdoff_t PRIo32
+#else
+#error "unsupported size of off_t"
+#endif
+
</font> #include <rtems/rfs/rtems-rfs-block.h>
#include <rtems/rfs/rtems-rfs-buffer.h>
#include <rtems/rfs/rtems-rfs-file-system.h>
<font color='#997700'>@@ -58,7 +68,7 @@
</font> if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
{
int c;
<font color='#880000'>- printf ("rtems-rfs: dir-lookup-ino: lookup ino: root=%ld, path=",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-lookup-ino: lookup ino: root=%" PRId32 ", path=",
</font> inode->ino);
for (c = 0; c < length; c++)
printf ("%c", name[c]);
<font color='#997700'>@@ -72,7 +82,7 @@
</font> if (rc > 0)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
<font color='#880000'>- printf ("rtems-rfs: dir-lookup-ino: map open failed for ino %lu: %d: %s",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-lookup-ino: map open failed for ino %" PRIu32 ": %d: %s",
</font> rtems_rfs_inode_ino (inode), rc, strerror (rc));
return rc;
}
<font color='#997700'>@@ -81,7 +91,7 @@
</font> if (rc > 0)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
<font color='#880000'>- printf ("rtems-rfs: dir-lookup-ino: handle open failed for ino %lu: %d: %s",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-lookup-ino: handle open failed for ino %" PRIu32 ": %d: %s",
</font> rtems_rfs_inode_ino (inode), rc, strerror (rc));
rtems_rfs_block_map_close (fs, &map);
return rc;
<font color='#997700'>@@ -121,7 +131,7 @@
</font> if (rc > 0)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
<font color='#880000'>- printf ("rtems-rfs: dir-lookup-ino: block read, ino=%lu block=%ld: %d: %s\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-lookup-ino: block read, ino=%" PRIu32 " block=%" PRId32 ": %d: %s\n",
</font> rtems_rfs_inode_ino (inode), block, rc, strerror (rc));
break;
}
<font color='#997700'>@@ -150,8 +160,8 @@
</font> if (rtems_rfs_dir_entry_valid (fs, elength, *ino))
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
<font color='#880000'>- printf ("rtems-rfs: dir-lookup-ino: " \
- "bad length or ino for ino %lu: %u/%ld @ %04lx\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-lookup-ino: "
+ "bad length or ino for ino %" PRIu32 ": %u/%" PRId32 " @ %04" PRIx32 "\n",
</font> rtems_rfs_inode_ino (inode), elength, *ino, map.bpos.boff);
rc = EIO;
break;
<font color='#997700'>@@ -160,8 +170,8 @@
</font> if (ehash == hash)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK))
<font color='#880000'>- printf ("rtems-rfs: dir-lookup-ino: " \
- "checking entry for ino %ld: off=%04lx length:%d ino:%ld\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-lookup-ino: "
+ "checking entry for ino %" PRId32 ": off=%04" PRIx32 " length:%d ino:%" PRId32 "\n",
</font> rtems_rfs_inode_ino (inode), map.bpos.boff,
elength, rtems_rfs_dir_entry_ino (entry));
<font color='#997700'>@@ -170,8 +180,8 @@
</font> *offset = rtems_rfs_block_map_pos (fs, &map);
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_FOUND))
<font color='#880000'>- printf ("rtems-rfs: dir-lookup-ino: " \
- "entry found in ino %lu, ino=%lu offset=%lu\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-lookup-ino: "
+ "entry found in ino %" PRIu32 ", ino=%" PRIu32 " offset=%" PRIu32 "\n",
</font> rtems_rfs_inode_ino (inode), *ino, *offset);
rtems_rfs_buffer_handle_close (fs, &entries);
<font color='#997700'>@@ -190,8 +200,8 @@
</font> if ((rc > 0) && (rc != ENXIO))
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
<font color='#880000'>- printf ("rtems-rfs: dir-lookup-ino: " \
- "block map next block failed in ino %lu: %d: %s\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-lookup-ino: "
+ "block map next block failed in ino %" PRIu32 ": %d: %s\n",
</font> rtems_rfs_inode_ino (inode), rc, strerror (rc));
}
if (rc == ENXIO)
<font color='#997700'>@@ -203,7 +213,7 @@
</font> {
rc = EIO;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
<font color='#880000'>- printf ("rtems-rfs: dir-lookup-ino: block is 0 in ino %lu: %d: %s\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-lookup-ino: block is 0 in ino %" PRIu32 ": %d: %s\n",
</font> rtems_rfs_inode_ino (inode), rc, strerror (rc));
}
}
<font color='#997700'>@@ -228,7 +238,7 @@
</font> if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))
{
int c;
<font color='#880000'>- printf ("rtems-rfs: dir-add-entry: dir=%ld, name=",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-add-entry: dir=%" PRId32 ", name=",
</font> rtems_rfs_inode_ino (dir));
for (c = 0; c < length; c++)
printf ("%c", name[c]);
<font color='#997700'>@@ -269,8 +279,8 @@
</font> if (rc != ENXIO)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))
<font color='#880000'>- printf ("rtems-rfs: dir-add-entry: " \
- "block map find failed for ino %lu: %d: %s\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-add-entry: "
+ "block map find failed for ino %" PRIu32 ": %d: %s\n",
</font> rtems_rfs_inode_ino (dir), rc, strerror (rc));
break;
}
<font color='#997700'>@@ -282,8 +292,8 @@
</font> if (rc > 0)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))
<font color='#880000'>- printf ("rtems-rfs: dir-add-entry: " \
- "block map grow failed for ino %lu: %d: %s\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-add-entry: "
+ "block map grow failed for ino %" PRIu32 ": %d: %s\n",
</font> rtems_rfs_inode_ino (dir), rc, strerror (rc));
break;
}
<font color='#997700'>@@ -297,8 +307,8 @@
</font> if (rc > 0)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))
<font color='#880000'>- printf ("rtems-rfs: dir-add-entry: " \
- "block buffer req failed for ino %lu: %d: %s\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-add-entry: "
+ "block buffer req failed for ino %" PRIu32 ": %d: %s\n",
</font> rtems_rfs_inode_ino (dir), rc, strerror (rc));
break;
}
<font color='#997700'>@@ -342,8 +352,8 @@
</font> if (rtems_rfs_dir_entry_valid (fs, elength, eino))
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))
<font color='#880000'>- printf ("rtems-rfs: dir-add-entry: " \
- "bad length or ino for ino %lu: %u/%ld @ %04x\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-add-entry: "
+ "bad length or ino for ino %" PRIu32 ": %u/%" PRId32 " @ %04x\n",
</font> rtems_rfs_inode_ino (dir), elength, eino, offset);
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
<font color='#997700'>@@ -373,9 +383,9 @@
</font> int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))
<font color='#880000'>- printf ("rtems-rfs: dir-del-entry: dir=%ld, entry=%ld offset=%lu\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-del-entry: dir=%" PRId32 ", entry=%" PRId32 " offset=%" PRIu32 "\n",
</font> rtems_rfs_inode_ino (dir), ino, offset);
<font color='#880000'>-<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+
</font> rc = rtems_rfs_block_map_open (fs, dir, &map);
if (rc > 0)
return rc;
<font color='#997700'>@@ -410,8 +420,8 @@
</font> if (rc > 0)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))
<font color='#880000'>- printf ("rtems-rfs: dir-del-entry: " \
- "block buffer req failed for ino %lu: %d: %s\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-del-entry: "
+ "block buffer req failed for ino %" PRIu32 ": %d: %s\n",
</font> rtems_rfs_inode_ino (dir), rc, strerror (rc));
break;
}
<font color='#997700'>@@ -433,13 +443,13 @@
</font> if (rtems_rfs_dir_entry_valid (fs, elength, eino))
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))
<font color='#880000'>- printf ("rtems-rfs: dir-del-entry: " \
- "bad length or ino for ino %lu: %u/%ld @ %04x\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-del-entry: "
+ "bad length or ino for ino %" PRIu32 ": %u/%" PRId32 " @ %04x\n",
</font> rtems_rfs_inode_ino (dir), elength, eino, offset);
rc = EIO;
break;
}
<font color='#880000'>-<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+
</font> if (ino == rtems_rfs_dir_entry_ino (entry))
{
uint32_t remaining;
<font color='#997700'>@@ -457,8 +467,8 @@
</font> elength = rtems_rfs_dir_entry_length (entry);
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))
<font color='#880000'>- printf ("rtems-rfs: dir-del-entry: " \
- "last block free for ino %lu: elength=%i offset=%d last=%s\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-del-entry: "
+ "last block free for ino %" PRIu32 ": elength=%i offset=%d last=%s\n",
</font> ino, elength, offset,
rtems_rfs_block_map_last (&map) ? "yes" : "no");
<font color='#997700'>@@ -469,8 +479,8 @@
</font> if (rc > 0)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))
<font color='#880000'>- printf ("rtems-rfs: dir-del-entry: " \
- "block map shrink failed for ino %lu: %d: %s\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-del-entry: "
+ "block map shrink failed for ino %" PRIu32 ": %d: %s\n",
</font> rtems_rfs_inode_ino (dir), rc, strerror (rc));
}
}
<font color='#997700'>@@ -517,7 +527,7 @@
</font> int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
<font color='#880000'>- printf ("rtems-rfs: dir-read: dir=%ld offset=%Ld\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-read: dir=%" PRId32 " offset=%" PRId64 "\n",
</font> rtems_rfs_inode_ino (dir), offset);
*length = 0;
<font color='#997700'>@@ -577,8 +587,8 @@
</font> if (rtems_rfs_dir_entry_valid (fs, elength, eino))
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
<font color='#880000'>- printf ("rtems-rfs: dir-read: " \
- "bad length or ino for ino %lu: %u/%ld @ %04lx\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-read: "
+ "bad length or ino for ino %" PRIu32 ": %u/%" PRId32 " @ %04" PRIx32 "\n",
</font> rtems_rfs_inode_ino (dir), elength, eino, map.bpos.boff);
rc = EIO;
break;
<font color='#997700'>@@ -608,16 +618,16 @@
</font> dirent->d_namlen = elength;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
<font color='#880000'>- printf ("rtems-rfs: dir-read: found off:%Ld ino:%ld name=%s\n",
- (uint64_t) dirent->d_off, dirent->d_ino, dirent->d_name);
</font><font color='#000088'>+ printf ("rtems-rfs: dir-read: found off:%" PRIdoff_t " ino:%ld name=%s\n",
+ dirent->d_off, dirent->d_ino, dirent->d_name);
</font> break;
}
*length += rtems_rfs_fs_block_size (fs) - map.bpos.boff;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
<font color='#880000'>- printf ("rtems-rfs: dir-read: next block: off:%ld length:%zd\n",
- (uint32_t) offset, *length);
</font><font color='#000088'>+ printf ("rtems-rfs: dir-read: next block: off:%" PRId64 " length:%zd\n",
+ offset, *length);
</font>
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
if (rc == ENXIO)
<font color='#997700'>@@ -640,7 +650,7 @@
</font> int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
<font color='#880000'>- printf ("rtems-rfs: dir-empty: dir=%ld\n", rtems_rfs_inode_ino (dir));
</font><font color='#000088'>+ printf ("rtems-rfs: dir-empty: dir=%" PRId32 "\n", rtems_rfs_inode_ino (dir));
</font>
empty = true;
<font color='#997700'>@@ -692,8 +702,8 @@
</font> if (rtems_rfs_dir_entry_valid (fs, elength, eino))
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_EMPTY))
<font color='#880000'>- printf ("rtems-rfs: dir-empty: " \
- "bad length or ino for ino %lu: %u/%ld @ %04x\n",
</font><font color='#000088'>+ printf ("rtems-rfs: dir-empty: "
+ "bad length or ino for ino %" PRIu32 ": %u/%" PRIu32 " @ %04x\n",
</font> rtems_rfs_inode_ino (dir), elength, eino, offset);
rc = EIO;
break;
<font color='#006600'>diff -u rtems/cpukit/libfs/src/rfs/rtems-rfs-link.c:1.3 rtems/cpukit/libfs/src/rfs/rtems-rfs-link.c:1.4
--- rtems/cpukit/libfs/src/rfs/rtems-rfs-link.c:1.3 Fri Mar 26 23:04:40 2010
+++ rtems/cpukit/libfs/src/rfs/rtems-rfs-link.c Tue Jun 15 18:34:56 2010
</font><font color='#997700'>@@ -22,6 +22,8 @@
</font> #include "config.h"
#endif
<font color='#000088'>+#include <inttypes.h>
+
</font> #include <rtems/rfs/rtems-rfs-block.h>
#include <rtems/rfs/rtems-rfs-buffer.h>
#include <rtems/rfs/rtems-rfs-file-system.h>
<font color='#997700'>@@ -46,10 +48,10 @@
</font> if (rtems_rfs_trace (RTEMS_RFS_TRACE_LINK))
{
int c;
<font color='#880000'>- printf ("rtems-rfs: link: parent(%lu) -> ", parent);
</font><font color='#000088'>+ printf ("rtems-rfs: link: parent(%" PRIu32 ") -> ", parent);
</font> for (c = 0; c < length; c++)
printf ("%c", name[c]);
<font color='#880000'>- printf ("(%lu)\n", target);
</font><font color='#000088'>+ printf ("(%" PRIu32 ")\n", target);
</font> }
rc = rtems_rfs_inode_open (fs, target, &target_inode, true);
<font color='#997700'>@@ -118,7 +120,7 @@
</font> int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
<font color='#880000'>- printf ("rtems-rfs: unlink: parent(%lu) -X-> (%lu)\n", parent, target);
</font><font color='#000088'>+ printf ("rtems-rfs: unlink: parent(%" PRIu32 ") -X-> (%" PRIu32 ")\n", parent, target);
</font>
rc = rtems_rfs_inode_open (fs, target, &target_inode, true);
if (rc)
<font color='#997700'>@@ -179,7 +181,7 @@
</font> links = rtems_rfs_inode_get_links (&target_inode);
if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
<font color='#880000'>- printf ("rtems-rfs: unlink: target:%lu links:%u\n", target, links);
</font><font color='#000088'>+ printf ("rtems-rfs: unlink: target:%" PRIu32 " links:%u\n", target, links);
</font>
if (links > 1)
{
<font color='#997700'>@@ -258,7 +260,7 @@
</font> if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK))
{
int c;
<font color='#880000'>- printf ("rtems-rfs: symlink: parent:%lu name:", parent);
</font><font color='#000088'>+ printf ("rtems-rfs: symlink: parent:%" PRIu32 " name:", parent);
</font> for (c = 0; c < length; c++)
printf ("%c", name[c]);
printf (" link:");
<font color='#997700'>@@ -367,7 +369,7 @@
</font> int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK_READ))
<font color='#880000'>- printf ("rtems-rfs: symlink-read: link:%lu\n", link);
</font><font color='#000088'>+ printf ("rtems-rfs: symlink-read: link:%" PRIu32 "\n", link);
</font>
rc = rtems_rfs_inode_open (fs, link, &inode, true);
if (rc)
<font color='#006600'>diff -u rtems/cpukit/libfs/src/rfs/rtems-rfs-link.c:1.3 rtems/cpukit/libfs/src/rfs/rtems-rfs-link.c:1.3.2.1
--- rtems/cpukit/libfs/src/rfs/rtems-rfs-link.c:1.3 Fri Mar 26 23:04:40 2010
+++ rtems/cpukit/libfs/src/rfs/rtems-rfs-link.c Tue Jun 15 18:35:05 2010
</font><font color='#997700'>@@ -22,6 +22,8 @@
</font> #include "config.h"
#endif
<font color='#000088'>+#include <inttypes.h>
+
</font> #include <rtems/rfs/rtems-rfs-block.h>
#include <rtems/rfs/rtems-rfs-buffer.h>
#include <rtems/rfs/rtems-rfs-file-system.h>
<font color='#997700'>@@ -46,10 +48,10 @@
</font> if (rtems_rfs_trace (RTEMS_RFS_TRACE_LINK))
{
int c;
<font color='#880000'>- printf ("rtems-rfs: link: parent(%lu) -> ", parent);
</font><font color='#000088'>+ printf ("rtems-rfs: link: parent(%" PRIu32 ") -> ", parent);
</font> for (c = 0; c < length; c++)
printf ("%c", name[c]);
<font color='#880000'>- printf ("(%lu)\n", target);
</font><font color='#000088'>+ printf ("(%" PRIu32 ")\n", target);
</font> }
rc = rtems_rfs_inode_open (fs, target, &target_inode, true);
<font color='#997700'>@@ -118,7 +120,7 @@
</font> int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
<font color='#880000'>- printf ("rtems-rfs: unlink: parent(%lu) -X-> (%lu)\n", parent, target);
</font><font color='#000088'>+ printf ("rtems-rfs: unlink: parent(%" PRIu32 ") -X-> (%" PRIu32 ")\n", parent, target);
</font>
rc = rtems_rfs_inode_open (fs, target, &target_inode, true);
if (rc)
<font color='#997700'>@@ -179,7 +181,7 @@
</font> links = rtems_rfs_inode_get_links (&target_inode);
if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
<font color='#880000'>- printf ("rtems-rfs: unlink: target:%lu links:%u\n", target, links);
</font><font color='#000088'>+ printf ("rtems-rfs: unlink: target:%" PRIu32 " links:%u\n", target, links);
</font>
if (links > 1)
{
<font color='#997700'>@@ -258,7 +260,7 @@
</font> if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK))
{
int c;
<font color='#880000'>- printf ("rtems-rfs: symlink: parent:%lu name:", parent);
</font><font color='#000088'>+ printf ("rtems-rfs: symlink: parent:%" PRIu32 " name:", parent);
</font> for (c = 0; c < length; c++)
printf ("%c", name[c]);
printf (" link:");
<font color='#997700'>@@ -367,7 +369,7 @@
</font> int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK_READ))
<font color='#880000'>- printf ("rtems-rfs: symlink-read: link:%lu\n", link);
</font><font color='#000088'>+ printf ("rtems-rfs: symlink-read: link:%" PRIu32 "\n", link);
</font>
rc = rtems_rfs_inode_open (fs, link, &inode, true);
if (rc)
</pre>
<p> </p>
<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>