<!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-16)</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>ccj</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-06-17 Chris Johns <chrisj@rtems.org>
libfs/src/rfs/rtems-rfs-bitmaps.h,
libfs/src/rfs/rtems-rfs-block-pos.h,
libfs/src/rfs/rtems-rfs-block.h: PR 1556. Struct clean up.
</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.2407&r2=text&tr2=1.2408&diff_format=h">M</a></td><td width='1%'>1.2408</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-bitmaps.h.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>cpukit/libfs/src/rfs/rtems-rfs-bitmaps.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/rfs/rtems-rfs-block-pos.h.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-block-pos.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/rfs/rtems-rfs-block.h.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>cpukit/libfs/src/rfs/rtems-rfs-block.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2407 rtems/cpukit/ChangeLog:1.2408
--- rtems/cpukit/ChangeLog:1.2407 Wed Jun 16 21:48:36 2010
+++ rtems/cpukit/ChangeLog Wed Jun 16 22:08:59 2010
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2010-06-17 Chris Johns <chrisj@rtems.org>
+
+ libfs/src/rfs/rtems-rfs-bitmaps.h,
+ libfs/src/rfs/rtems-rfs-block-pos.h,
+ libfs/src/rfs/rtems-rfs-block.h: PR 1556. Struct clean up.<span style="background-color: #FF0000"> </span>
+
</font> 2010-06-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/rfs/rtems-rfs-bitmaps-ut.c: Various 64bit fixes.
<font color='#006600'>diff -u rtems/cpukit/libfs/src/rfs/rtems-rfs-bitmaps.h:1.2 rtems/cpukit/libfs/src/rfs/rtems-rfs-bitmaps.h:1.3
--- rtems/cpukit/libfs/src/rfs/rtems-rfs-bitmaps.h:1.2 Wed Jun 16 09:39:14 2010
+++ rtems/cpukit/libfs/src/rfs/rtems-rfs-bitmaps.h Wed Jun 16 22:09:00 2010
</font><font color='#997700'>@@ -99,7 +99,7 @@
</font> /**
* The bitmap control is a simple way to manage the various parts of a bitmap.
*/
<font color='#880000'>-typedef struct _rtems_rfs_bitmap_control
</font><font color='#000088'>+typedef struct rtems_rfs_bitmap_control_s
</font> {
rtems_rfs_buffer_handle* buffer; //< Handle the to buffer with the bit
//map.
<font color='#006600'>diff -u rtems/cpukit/libfs/src/rfs/rtems-rfs-block-pos.h:1.3 rtems/cpukit/libfs/src/rfs/rtems-rfs-block-pos.h:1.4
--- rtems/cpukit/libfs/src/rfs/rtems-rfs-block-pos.h:1.3 Wed Jun 16 09:39:14 2010
+++ rtems/cpukit/libfs/src/rfs/rtems-rfs-block-pos.h Wed Jun 16 22:09:00 2010
</font><font color='#997700'>@@ -47,7 +47,7 @@
</font> * block field can be used hold a block number for the position as a look up
* cache.
*/
<font color='#880000'>-typedef struct _rtems_rfs_block_pos
</font><font color='#000088'>+typedef struct rtems_rfs_block_pos_s
</font> {
/**
* The block index in the map. Range is from 0 to the maps block count minus
<font color='#997700'>@@ -110,8 +110,8 @@
</font> * @param bpos Pointer to the block position to fill in.
* @return rtems_rfs_pos The absolute offset.
*/
<font color='#880000'>-rtems_rfs_pos rtems_rfs_block_get_pos (rtems_rfs_file_system* fs,
- rtems_rfs_block_pos* bpos);
</font><font color='#000088'>+rtems_rfs_pos rtems_rfs_block_get_pos (rtems_rfs_file_system* fs,
+ rtems_rfs_block_pos* bpos);
</font>
/**
* Add the relative position to the block position. The relative position is
<font color='#997700'>@@ -136,7 +136,7 @@
</font> * A block size is the number of blocks less one plus the offset where the
* offset must be less than the block size.
*/
<font color='#880000'>-typedef struct _rtems_rfs_block_size
</font><font color='#000088'>+typedef struct rtems_rfs_block_size_s
</font> {
/**
* The count of blocks in a map. A 0 means no blocks and a zero length and
<font color='#006600'>diff -u rtems/cpukit/libfs/src/rfs/rtems-rfs-block.h:1.2 rtems/cpukit/libfs/src/rfs/rtems-rfs-block.h:1.3
--- rtems/cpukit/libfs/src/rfs/rtems-rfs-block.h:1.2 Sat Jun 12 00:18:02 2010
+++ rtems/cpukit/libfs/src/rfs/rtems-rfs-block.h Wed Jun 16 22:09:00 2010
</font><font color='#997700'>@@ -86,7 +86,7 @@
</font> * @li 2,684,354,560 bytes for a 2048 byte block size, and
* @li 21,474,836,480 bytes for a 4096 byte block size.
*/
<font color='#880000'>-typedef struct rtems_rfs_block_map_t
</font><font color='#000088'>+typedef struct rtems_rfs_block_map_s
</font> {
/**
* Is the map dirty ?
</pre>
<p> </p>
<a name='cs2'></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-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/rfs/rtems-rfs-group.c: Various 64bit 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.2405&r2=text&tr2=1.2406&diff_format=h">M</a></td><td width='1%'>1.2406</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.26&r2=text&tr2=1.2346.2.27&diff_format=h">M</a></td><td width='1%'>1.2346.2.27</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-group.c.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>cpukit/libfs/src/rfs/rtems-rfs-group.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/rfs/rtems-rfs-group.c.diff?r1=text&tr1=1.4&r2=text&tr2=1.4.2.1&diff_format=h">M</a></td><td width='1%'>1.4.2.1</td><td width='100%'>cpukit/libfs/src/rfs/rtems-rfs-group.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2405 rtems/cpukit/ChangeLog:1.2406
--- rtems/cpukit/ChangeLog:1.2405 Wed Jun 16 14:12:19 2010
+++ rtems/cpukit/ChangeLog Wed Jun 16 21:44:49 2010
</font><font color='#997700'>@@ -1,3 +1,7 @@
</font><font color='#000088'>+2010-06-17 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * libfs/src/rfs/rtems-rfs-group.c: Various 64bit fixes.
+
</font> 2010-06-16 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1453/cpukit
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2346.2.26 rtems/cpukit/ChangeLog:1.2346.2.27
--- rtems/cpukit/ChangeLog:1.2346.2.26 Wed Jun 16 14:12:04 2010
+++ rtems/cpukit/ChangeLog Wed Jun 16 21:44:54 2010
</font><font color='#997700'>@@ -1,3 +1,7 @@
</font><font color='#000088'>+2010-06-17 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * libfs/src/rfs/rtems-rfs-group.c: Various 64bit fixes.
+
</font> 2010-06-16 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1453/cpukit
<font color='#006600'>diff -u rtems/cpukit/libfs/src/rfs/rtems-rfs-group.c:1.4 rtems/cpukit/libfs/src/rfs/rtems-rfs-group.c:1.5
--- rtems/cpukit/libfs/src/rfs/rtems-rfs-group.c:1.4 Fri Mar 26 23:04:40 2010
+++ rtems/cpukit/libfs/src/rfs/rtems-rfs-group.c Wed Jun 16 21:44:49 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-file-system.h>
#include <rtems/rfs/rtems-rfs-group.h>
<font color='#997700'>@@ -46,7 +48,7 @@
</font> size = rtems_rfs_fs_blocks (fs) - base;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))
<font color='#880000'>- printf ("rtems-rfs: group-open: base=%ld, blocks=%zd inodes=%zd\n",
</font><font color='#000088'>+ printf ("rtems-rfs: group-open: base=%" PRId32 ", blocks=%zd inodes=%zd\n",
</font> base, size, inodes);
group->base = base;
<font color='#997700'>@@ -114,7 +116,7 @@
</font> int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_CLOSE))
<font color='#880000'>- printf ("rtems-rfs: group-close: base=%ld\n", group->base);
</font><font color='#000088'>+ printf ("rtems-rfs: group-close: base=%" PRId32 "\n", group->base);
</font>
/*
* We need to close as much as possible and also return any error if one
<font color='#997700'>@@ -216,7 +218,7 @@
</font> else
*result = rtems_rfs_group_block (&fs->groups[group], bit);
if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))
<font color='#880000'>- printf ("rtems-rfs: group-bitmap-alloc: %s allocated: %ld\n",
</font><font color='#000088'>+ printf ("rtems-rfs: group-bitmap-alloc: %s allocated: %" PRId32 "\n",
</font> inode ? "inode" : "block", *result);
return 0;
}
<font color='#997700'>@@ -245,7 +247,7 @@
</font> int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))
<font color='#880000'>- printf ("rtems-rfs: group-bitmap-free: %s free: %ld\n",
</font><font color='#000088'>+ printf ("rtems-rfs: group-bitmap-free: %s free: %" PRId32 "\n",
</font> inode ? "inode" : "block", no);
if (inode)
<font color='#997700'>@@ -287,7 +289,7 @@
</font> int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))
<font color='#880000'>- printf ("rtems-rfs: group-bitmap-test: %s test: %ld\n",
</font><font color='#000088'>+ printf ("rtems-rfs: group-bitmap-test: %s test: %" PRId32 "\n",
</font> inode ? "inode" : "block", no);
if (inode)
<font color='#006600'>diff -u rtems/cpukit/libfs/src/rfs/rtems-rfs-group.c:1.4 rtems/cpukit/libfs/src/rfs/rtems-rfs-group.c:1.4.2.1
--- rtems/cpukit/libfs/src/rfs/rtems-rfs-group.c:1.4 Fri Mar 26 23:04:40 2010
+++ rtems/cpukit/libfs/src/rfs/rtems-rfs-group.c Wed Jun 16 21:44:55 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-file-system.h>
#include <rtems/rfs/rtems-rfs-group.h>
<font color='#997700'>@@ -46,7 +48,7 @@
</font> size = rtems_rfs_fs_blocks (fs) - base;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))
<font color='#880000'>- printf ("rtems-rfs: group-open: base=%ld, blocks=%zd inodes=%zd\n",
</font><font color='#000088'>+ printf ("rtems-rfs: group-open: base=%" PRId32 ", blocks=%zd inodes=%zd\n",
</font> base, size, inodes);
group->base = base;
<font color='#997700'>@@ -114,7 +116,7 @@
</font> int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_CLOSE))
<font color='#880000'>- printf ("rtems-rfs: group-close: base=%ld\n", group->base);
</font><font color='#000088'>+ printf ("rtems-rfs: group-close: base=%" PRId32 "\n", group->base);
</font>
/*
* We need to close as much as possible and also return any error if one
<font color='#997700'>@@ -216,7 +218,7 @@
</font> else
*result = rtems_rfs_group_block (&fs->groups[group], bit);
if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))
<font color='#880000'>- printf ("rtems-rfs: group-bitmap-alloc: %s allocated: %ld\n",
</font><font color='#000088'>+ printf ("rtems-rfs: group-bitmap-alloc: %s allocated: %" PRId32 "\n",
</font> inode ? "inode" : "block", *result);
return 0;
}
<font color='#997700'>@@ -245,7 +247,7 @@
</font> int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))
<font color='#880000'>- printf ("rtems-rfs: group-bitmap-free: %s free: %ld\n",
</font><font color='#000088'>+ printf ("rtems-rfs: group-bitmap-free: %s free: %" PRId32 "\n",
</font> inode ? "inode" : "block", no);
if (inode)
<font color='#997700'>@@ -287,7 +289,7 @@
</font> int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))
<font color='#880000'>- printf ("rtems-rfs: group-bitmap-test: %s test: %ld\n",
</font><font color='#000088'>+ printf ("rtems-rfs: group-bitmap-test: %s test: %" PRId32 "\n",
</font> inode ? "inode" : "block", no);
if (inode)
</pre>
<p> </p>
<a name='cs3'></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-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/rfs/rtems-rfs-bitmaps-ut.c: Various 64bit 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.2406&r2=text&tr2=1.2407&diff_format=h">M</a></td><td width='1%'>1.2407</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.27&r2=text&tr2=1.2346.2.28&diff_format=h">M</a></td><td width='1%'>1.2346.2.28</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-bitmaps-ut.c.diff?r1=text&tr1=1.5&r2=text&tr2=1.6&diff_format=h">M</a></td><td width='1%'>1.6</td><td width='100%'>cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c.diff?r1=text&tr1=1.5&r2=text&tr2=1.5.2.1&diff_format=h">M</a></td><td width='1%'>1.5.2.1</td><td width='100%'>cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2406 rtems/cpukit/ChangeLog:1.2407
--- rtems/cpukit/ChangeLog:1.2406 Wed Jun 16 21:44:49 2010
+++ rtems/cpukit/ChangeLog Wed Jun 16 21:48:36 2010
</font><font color='#997700'>@@ -1,5 +1,6 @@
</font> 2010-06-17 Ralf Corsépius <ralf.corsepius@rtems.org>
<font color='#000088'>+ * libfs/src/rfs/rtems-rfs-bitmaps-ut.c: Various 64bit fixes.
</font> * libfs/src/rfs/rtems-rfs-group.c: Various 64bit fixes.
2010-06-16 Joel Sherrill <joel.sherrilL@OARcorp.com>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2346.2.27 rtems/cpukit/ChangeLog:1.2346.2.28
--- rtems/cpukit/ChangeLog:1.2346.2.27 Wed Jun 16 21:44:54 2010
+++ rtems/cpukit/ChangeLog Wed Jun 16 21:48:47 2010
</font><font color='#997700'>@@ -1,5 +1,6 @@
</font> 2010-06-17 Ralf Corsépius <ralf.corsepius@rtems.org>
<font color='#000088'>+ * libfs/src/rfs/rtems-rfs-bitmaps-ut.c: Various 64bit fixes.
</font> * libfs/src/rfs/rtems-rfs-group.c: Various 64bit fixes.
2010-06-16 Joel Sherrill <joel.sherrilL@OARcorp.com>
<font color='#006600'>diff -u rtems/cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c:1.5 rtems/cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c:1.6
--- rtems/cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c:1.5 Sat May 22 11:46:59 2010
+++ rtems/cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c Wed Jun 16 21:48:37 2010
</font><font color='#997700'>@@ -23,6 +23,7 @@
</font>
#include <stdio.h>
#include <stdlib.h>
<font color='#000088'>+#include <inttypes.h>
</font>
#include <rtems/rfs/rtems-rfs-bitmaps.h>
#include <rtems/rfs/rtems-rfs-file-system.h>
<font color='#997700'>@@ -44,7 +45,7 @@
</font> int rc = rtems_rfs_bitmap_map_test (control, bit + count, &result);
if (rc > 0)
{
<font color='#880000'>- printf (" %2d. Test bit %ld in range (%ld,%ld] is %s: ",
</font><font color='#000088'>+ printf (" %2d. Test bit %" PRId32 " in range (%" PRId32 ",%ld] is %s: ",
</font> test, bit + count, bit, bit + size - 1, !set ? "set" : "clear");
printf ("FAIL (%s)\n", strerror (rc));
return false;
<font color='#997700'>@@ -53,14 +54,14 @@
</font> result = !result;
if (!result)
{
<font color='#880000'>- printf (" %2d. Test bit %ld in range (%ld,%ld] is %s: ",
</font><font color='#000088'>+ printf (" %2d. Test bit %" PRId32 " in range (%" PRId32 ",%ld] is %s: ",
</font> test, bit + count, bit, bit + size - 1, !set ? "set" : "clear");
printf (" %s\n", !result ? "pass" : "FAIL");
return false;
}
}
<font color='#880000'>- printf (" %2d. Test bit range (%ld,%ld] all %s: pass\n",
</font><font color='#000088'>+ printf (" %2d. Test bit range (%" PRId32 ",%ld] all %s: pass\n",
</font> test, bit, bit + size - 1, set ? "set" : "clear");
return true;
<font color='#997700'>@@ -87,7 +88,7 @@
</font> for (i = 0; i < size; i++)
rtems_rfs_bitmap_map_clear (control, bit + i);
<font color='#880000'>- printf (" %2d. Cleared bits (%ld, %ld] (%zd)\n",
</font><font color='#000088'>+ printf (" %2d. Cleared bits (%" PRId32 ", %ld] (%zd)\n",
</font> test, bit, bit + size - 1, size);
for (i = 0; i < rtems_rfs_bitmap_element_bits (); i++)
<font color='#997700'>@@ -100,7 +101,7 @@
</font> }
if (state)
{
<font color='#880000'>- printf (" %2d. Cleared bit still set: bit = %ld\n", test, bit + i);
</font><font color='#000088'>+ printf (" %2d. Cleared bit still set: bit = %" PRId32 "\n", test, bit + i);
</font> return false;
}
}
<font color='#997700'>@@ -118,13 +119,13 @@
</font> }
if (!result)
{
<font color='#880000'>- printf (" %2d. Find bit with seed = %ld: %s: bit = %ld\n",
</font><font color='#000088'>+ printf (" %2d. Find bit with seed = %" PRId32 ": %s: bit = %" PRId32 "\n",
</font> test, seed, result ? "pass" : "FAIL", bit);
return false;
}
}
<font color='#880000'>- printf (" %2d. Alloc'ed all bits (%ld, %ld] (%zd)\n",
</font><font color='#000088'>+ printf (" %2d. Alloc'ed all bits (%" PRId32 ", %ld] (%zd)\n",
</font> test, bit, bit + size - 1, size);
return true;
<font color='#997700'>@@ -206,13 +207,13 @@
</font>
rc = rtems_rfs_bitmap_map_alloc (&control, 0, &result, &bit);
result = result && (bit == 0);
<font color='#880000'>- printf (" 3. Find bit 0 with seed = 0: %s (%s): bit = %ld\n",
</font><font color='#000088'>+ printf (" 3. Find bit 0 with seed = 0: %s (%s): bit = %" PRId32 "\n",
</font> result ? "pass" : "FAIL", strerror (rc), bit);
rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
rc = rtems_rfs_bitmap_map_alloc (&control, size - 1, &result, &bit);
result = result && (bit == (size - 1));
<font color='#880000'>- printf (" 4. Find bit (size - 1) with seed = (size - 1) (%zd): %s (%s): bit = %ld\n",
</font><font color='#000088'>+ printf (" 4. Find bit (size - 1) with seed = (size - 1) (%zd): %s (%s): bit = %" PRId32 "\n",
</font> size - 1, result ? "pass" : "FAIL", strerror (rc), bit);
rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
<font color='#997700'>@@ -245,20 +246,20 @@
</font> bit = rand () % size;
rc = rtems_rfs_bitmap_map_clear (&control, bit);
<font color='#880000'>- printf (" 9. Clear bit %ld: %s (%s)\n",
</font><font color='#000088'>+ printf (" 9. Clear bit %" PRId32 ": %s (%s)\n",
</font> bit, rc == 0 ? "PASS" : "FAIL", strerror (rc));
rtems_rfs_exit_on_error (rc, false, &control, buffer.buffer);
last_bit = bit;
rc = rtems_rfs_bitmap_map_alloc (&control, 0, &result, &bit);
result = result && (bit == last_bit);
<font color='#880000'>- printf (" 10. Find bit with seed = 0: %s (%s): bit = %ld\n",
</font><font color='#000088'>+ printf (" 10. Find bit with seed = 0: %s (%s): bit = %" PRId32 "\n",
</font> result ? "pass" : "FAIL", strerror (rc), bit);
rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
rc = rtems_rfs_bitmap_map_alloc (&control, 0, &result, &bit);
result = !result || (bit != last_bit);
<font color='#880000'>- printf (" 11. Fail to find bit with seed = 0: %s (%s): bit = %ld\n",
</font><font color='#000088'>+ printf (" 11. Fail to find bit with seed = 0: %s (%s): bit = %" PRId32 "\n",
</font> result ? "pass" : "FAIL", strerror (rc), bit);
rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
<font color='#997700'>@@ -269,7 +270,7 @@
</font>
rc = rtems_rfs_bitmap_map_alloc (&control, size - 1, &result, &bit);
result = result && (bit == 0);
<font color='#880000'>- printf (" 13. Find bit with seed = (size - 1): %s (%s): bit = %ld\n",
</font><font color='#000088'>+ printf (" 13. Find bit with seed = (size - 1): %s (%s): bit = %" PRId32 "\n",
</font> result ? "pass" : "FAIL", strerror (rc), bit);
rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
<font color='#997700'>@@ -280,7 +281,7 @@
</font>
rc = rtems_rfs_bitmap_map_alloc (&control, 0, &result, &bit);
result = result && (bit == (size - 1));
<font color='#880000'>- printf (" 15. Find bit with seed = 0: %s (%s): bit = %ld\n",
</font><font color='#000088'>+ printf (" 15. Find bit with seed = 0: %s (%s): bit = %" PRId32 "\n",
</font> result ? "pass" : "FAIL", strerror (rc), bit);
rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
<font color='#997700'>@@ -290,7 +291,7 @@
</font>
rc = rtems_rfs_bitmap_map_alloc (&control, size / 2, &result, &bit);
result = result && (bit == 0);
<font color='#880000'>- printf (" 17. Find bit with seed = (size / 2) (%zd): %s (%s): bit = %ld\n",
</font><font color='#000088'>+ printf (" 17. Find bit with seed = (size / 2) (%zd): %s (%s): bit = %" PRId32 "\n",
</font> size / 2, result ? "pass" : "FAIL", strerror (rc), bit);
rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
<font color='#997700'>@@ -301,7 +302,7 @@
</font>
rc = rtems_rfs_bitmap_map_alloc (&control, size / 2, &result, &bit);
result = result && (bit == (size - 1));
<font color='#880000'>- printf (" 19. Find bit with seed = (size / 2) (%zd): %s (%s): bit = %ld\n",
</font><font color='#000088'>+ printf (" 19. Find bit with seed = (size / 2) (%zd): %s (%s): bit = %" PRId32 "\n",
</font> size / 2, result ? "pass" : "FAIL", strerror (rc), bit);
rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
<font color='#997700'>@@ -311,7 +312,7 @@
</font>
rc = rtems_rfs_bitmap_map_alloc (&control, (size / 2) - 1, &result, &bit);
result = result && (bit == 0);
<font color='#880000'>- printf (" 21. Find bit with seed = ((size / 2) - 1) (%zd): %s (%s): bit = %ld\n",
</font><font color='#000088'>+ printf (" 21. Find bit with seed = ((size / 2) - 1) (%zd): %s (%s): bit = %" PRId32 "\n",
</font> (size / 2) - 1, result ? "pass" : "FAIL", strerror (rc), bit);
rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
<font color='#997700'>@@ -321,7 +322,7 @@
</font>
rc = rtems_rfs_bitmap_map_alloc (&control, (size / 2) - 1, &result, &bit);
result = result && (bit == (size - 1));
<font color='#880000'>- printf (" 23. Find bit with seed = ((size / 2) - 1) (%zd): %s (%s): bit = %ld\n",
</font><font color='#000088'>+ printf (" 23. Find bit with seed = ((size / 2) - 1) (%zd): %s (%s): bit = %" PRId32 "\n",
</font> (size / 2) - 1, result ? "pass" : "FAIL", strerror (rc), bit);
rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
<font color='#997700'>@@ -351,18 +352,18 @@
</font> rc = rtems_rfs_bitmap_map_clear (&control, bit);
if (rc > 0)
{
<font color='#880000'>- printf (" 26. Clear bit %ld: %s (%s)\n",
</font><font color='#000088'>+ printf (" 26. Clear bit %" PRId32 ": %s (%s)\n",
</font> bit, rc == 0 ? "PASS" : "FAIL", strerror (rc));
rtems_rfs_exit_on_error (rc, false, &control, buffer.buffer);
}
}
<font color='#880000'>- printf (" 26. Clear bit (%ld, %ld]: %s (%s)\n",
</font><font color='#000088'>+ printf (" 26. Clear bit (%" PRId32 ", %" PRId32 "]: %s (%s)\n",
</font> first_bit, last_bit, rc == 0 ? "PASS" : "FAIL", strerror (rc));
clear = rtems_rfs_bitmap_map_free (&control);
result = clear == (last_bit - first_bit);
<font color='#880000'>- printf (" 27. Check free count is %zd: %ld: %s (%s)\n",
</font><font color='#000088'>+ printf (" 27. Check free count is %zd: %" PRId32 ": %s (%s)\n",
</font> clear, last_bit - first_bit,
result ? "pass" : "FAIL", strerror (rc));
<font color='#006600'>diff -u rtems/cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c:1.5 rtems/cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c:1.5.2.1
--- rtems/cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c:1.5 Sat May 22 11:46:59 2010
+++ rtems/cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c Wed Jun 16 21:48:50 2010
</font><font color='#997700'>@@ -23,6 +23,7 @@
</font>
#include <stdio.h>
#include <stdlib.h>
<font color='#000088'>+#include <inttypes.h>
</font>
#include <rtems/rfs/rtems-rfs-bitmaps.h>
#include <rtems/rfs/rtems-rfs-file-system.h>
<font color='#997700'>@@ -44,7 +45,7 @@
</font> int rc = rtems_rfs_bitmap_map_test (control, bit + count, &result);
if (rc > 0)
{
<font color='#880000'>- printf (" %2d. Test bit %ld in range (%ld,%ld] is %s: ",
</font><font color='#000088'>+ printf (" %2d. Test bit %" PRId32 " in range (%" PRId32 ",%ld] is %s: ",
</font> test, bit + count, bit, bit + size - 1, !set ? "set" : "clear");
printf ("FAIL (%s)\n", strerror (rc));
return false;
<font color='#997700'>@@ -53,14 +54,14 @@
</font> result = !result;
if (!result)
{
<font color='#880000'>- printf (" %2d. Test bit %ld in range (%ld,%ld] is %s: ",
</font><font color='#000088'>+ printf (" %2d. Test bit %" PRId32 " in range (%" PRId32 ",%ld] is %s: ",
</font> test, bit + count, bit, bit + size - 1, !set ? "set" : "clear");
printf (" %s\n", !result ? "pass" : "FAIL");
return false;
}
}
<font color='#880000'>- printf (" %2d. Test bit range (%ld,%ld] all %s: pass\n",
</font><font color='#000088'>+ printf (" %2d. Test bit range (%" PRId32 ",%ld] all %s: pass\n",
</font> test, bit, bit + size - 1, set ? "set" : "clear");
return true;
<font color='#997700'>@@ -87,7 +88,7 @@
</font> for (i = 0; i < size; i++)
rtems_rfs_bitmap_map_clear (control, bit + i);
<font color='#880000'>- printf (" %2d. Cleared bits (%ld, %ld] (%zd)\n",
</font><font color='#000088'>+ printf (" %2d. Cleared bits (%" PRId32 ", %ld] (%zd)\n",
</font> test, bit, bit + size - 1, size);
for (i = 0; i < rtems_rfs_bitmap_element_bits (); i++)
<font color='#997700'>@@ -100,7 +101,7 @@
</font> }
if (state)
{
<font color='#880000'>- printf (" %2d. Cleared bit still set: bit = %ld\n", test, bit + i);
</font><font color='#000088'>+ printf (" %2d. Cleared bit still set: bit = %" PRId32 "\n", test, bit + i);
</font> return false;
}
}
<font color='#997700'>@@ -118,13 +119,13 @@
</font> }
if (!result)
{
<font color='#880000'>- printf (" %2d. Find bit with seed = %ld: %s: bit = %ld\n",
</font><font color='#000088'>+ printf (" %2d. Find bit with seed = %" PRId32 ": %s: bit = %" PRId32 "\n",
</font> test, seed, result ? "pass" : "FAIL", bit);
return false;
}
}
<font color='#880000'>- printf (" %2d. Alloc'ed all bits (%ld, %ld] (%zd)\n",
</font><font color='#000088'>+ printf (" %2d. Alloc'ed all bits (%" PRId32 ", %ld] (%zd)\n",
</font> test, bit, bit + size - 1, size);
return true;
<font color='#997700'>@@ -206,13 +207,13 @@
</font>
rc = rtems_rfs_bitmap_map_alloc (&control, 0, &result, &bit);
result = result && (bit == 0);
<font color='#880000'>- printf (" 3. Find bit 0 with seed = 0: %s (%s): bit = %ld\n",
</font><font color='#000088'>+ printf (" 3. Find bit 0 with seed = 0: %s (%s): bit = %" PRId32 "\n",
</font> result ? "pass" : "FAIL", strerror (rc), bit);
rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
rc = rtems_rfs_bitmap_map_alloc (&control, size - 1, &result, &bit);
result = result && (bit == (size - 1));
<font color='#880000'>- printf (" 4. Find bit (size - 1) with seed = (size - 1) (%zd): %s (%s): bit = %ld\n",
</font><font color='#000088'>+ printf (" 4. Find bit (size - 1) with seed = (size - 1) (%zd): %s (%s): bit = %" PRId32 "\n",
</font> size - 1, result ? "pass" : "FAIL", strerror (rc), bit);
rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
<font color='#997700'>@@ -245,20 +246,20 @@
</font> bit = rand () % size;
rc = rtems_rfs_bitmap_map_clear (&control, bit);
<font color='#880000'>- printf (" 9. Clear bit %ld: %s (%s)\n",
</font><font color='#000088'>+ printf (" 9. Clear bit %" PRId32 ": %s (%s)\n",
</font> bit, rc == 0 ? "PASS" : "FAIL", strerror (rc));
rtems_rfs_exit_on_error (rc, false, &control, buffer.buffer);
last_bit = bit;
rc = rtems_rfs_bitmap_map_alloc (&control, 0, &result, &bit);
result = result && (bit == last_bit);
<font color='#880000'>- printf (" 10. Find bit with seed = 0: %s (%s): bit = %ld\n",
</font><font color='#000088'>+ printf (" 10. Find bit with seed = 0: %s (%s): bit = %" PRId32 "\n",
</font> result ? "pass" : "FAIL", strerror (rc), bit);
rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
rc = rtems_rfs_bitmap_map_alloc (&control, 0, &result, &bit);
result = !result || (bit != last_bit);
<font color='#880000'>- printf (" 11. Fail to find bit with seed = 0: %s (%s): bit = %ld\n",
</font><font color='#000088'>+ printf (" 11. Fail to find bit with seed = 0: %s (%s): bit = %" PRId32 "\n",
</font> result ? "pass" : "FAIL", strerror (rc), bit);
rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
<font color='#997700'>@@ -269,7 +270,7 @@
</font>
rc = rtems_rfs_bitmap_map_alloc (&control, size - 1, &result, &bit);
result = result && (bit == 0);
<font color='#880000'>- printf (" 13. Find bit with seed = (size - 1): %s (%s): bit = %ld\n",
</font><font color='#000088'>+ printf (" 13. Find bit with seed = (size - 1): %s (%s): bit = %" PRId32 "\n",
</font> result ? "pass" : "FAIL", strerror (rc), bit);
rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
<font color='#997700'>@@ -280,7 +281,7 @@
</font>
rc = rtems_rfs_bitmap_map_alloc (&control, 0, &result, &bit);
result = result && (bit == (size - 1));
<font color='#880000'>- printf (" 15. Find bit with seed = 0: %s (%s): bit = %ld\n",
</font><font color='#000088'>+ printf (" 15. Find bit with seed = 0: %s (%s): bit = %" PRId32 "\n",
</font> result ? "pass" : "FAIL", strerror (rc), bit);
rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
<font color='#997700'>@@ -290,7 +291,7 @@
</font>
rc = rtems_rfs_bitmap_map_alloc (&control, size / 2, &result, &bit);
result = result && (bit == 0);
<font color='#880000'>- printf (" 17. Find bit with seed = (size / 2) (%zd): %s (%s): bit = %ld\n",
</font><font color='#000088'>+ printf (" 17. Find bit with seed = (size / 2) (%zd): %s (%s): bit = %" PRId32 "\n",
</font> size / 2, result ? "pass" : "FAIL", strerror (rc), bit);
rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
<font color='#997700'>@@ -301,7 +302,7 @@
</font>
rc = rtems_rfs_bitmap_map_alloc (&control, size / 2, &result, &bit);
result = result && (bit == (size - 1));
<font color='#880000'>- printf (" 19. Find bit with seed = (size / 2) (%zd): %s (%s): bit = %ld\n",
</font><font color='#000088'>+ printf (" 19. Find bit with seed = (size / 2) (%zd): %s (%s): bit = %" PRId32 "\n",
</font> size / 2, result ? "pass" : "FAIL", strerror (rc), bit);
rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
<font color='#997700'>@@ -311,7 +312,7 @@
</font>
rc = rtems_rfs_bitmap_map_alloc (&control, (size / 2) - 1, &result, &bit);
result = result && (bit == 0);
<font color='#880000'>- printf (" 21. Find bit with seed = ((size / 2) - 1) (%zd): %s (%s): bit = %ld\n",
</font><font color='#000088'>+ printf (" 21. Find bit with seed = ((size / 2) - 1) (%zd): %s (%s): bit = %" PRId32 "\n",
</font> (size / 2) - 1, result ? "pass" : "FAIL", strerror (rc), bit);
rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
<font color='#997700'>@@ -321,7 +322,7 @@
</font>
rc = rtems_rfs_bitmap_map_alloc (&control, (size / 2) - 1, &result, &bit);
result = result && (bit == (size - 1));
<font color='#880000'>- printf (" 23. Find bit with seed = ((size / 2) - 1) (%zd): %s (%s): bit = %ld\n",
</font><font color='#000088'>+ printf (" 23. Find bit with seed = ((size / 2) - 1) (%zd): %s (%s): bit = %" PRId32 "\n",
</font> (size / 2) - 1, result ? "pass" : "FAIL", strerror (rc), bit);
rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
<font color='#997700'>@@ -351,18 +352,18 @@
</font> rc = rtems_rfs_bitmap_map_clear (&control, bit);
if (rc > 0)
{
<font color='#880000'>- printf (" 26. Clear bit %ld: %s (%s)\n",
</font><font color='#000088'>+ printf (" 26. Clear bit %" PRId32 ": %s (%s)\n",
</font> bit, rc == 0 ? "PASS" : "FAIL", strerror (rc));
rtems_rfs_exit_on_error (rc, false, &control, buffer.buffer);
}
}
<font color='#880000'>- printf (" 26. Clear bit (%ld, %ld]: %s (%s)\n",
</font><font color='#000088'>+ printf (" 26. Clear bit (%" PRId32 ", %" PRId32 "]: %s (%s)\n",
</font> first_bit, last_bit, rc == 0 ? "PASS" : "FAIL", strerror (rc));
clear = rtems_rfs_bitmap_map_free (&control);
result = clear == (last_bit - first_bit);
<font color='#880000'>- printf (" 27. Check free count is %zd: %ld: %s (%s)\n",
</font><font color='#000088'>+ printf (" 27. Check free count is %zd: %" PRId32 ": %s (%s)\n",
</font> clear, last_bit - first_bit,
result ? "pass" : "FAIL", strerror (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>