<!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 (2011-09-29)</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>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/pritime.h: New.
* Makefile.am: Add support/include/pritime.h
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/ChangeLog.diff?r1=text&tr1=1.188&r2=text&tr2=1.189&diff_format=h">M</a></td><td width='1%'>1.189</td><td width='100%'>testsuites/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/Makefile.am.diff?r1=text&tr1=1.13&r2=text&tr2=1.14&diff_format=h">M</a></td><td width='1%'>1.14</td><td width='100%'>testsuites/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/support/include/pritime.h?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/support/include/pritime.h</font></td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/ChangeLog:1.188 rtems/testsuites/ChangeLog:1.189
--- rtems/testsuites/ChangeLog:1.188 Fri Jul 29 08:48:15 2011
+++ rtems/testsuites/ChangeLog Thu Sep 29 21:31:25 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * support/include/pritime.h: New.
+ * Makefile.am: Add support/include/pritime.h
+
</font> 2011-07-29 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* support/include/test_support.h: Fixed incorrect name in prototype.
<font color='#006600'>diff -u rtems/testsuites/Makefile.am:1.13 rtems/testsuites/Makefile.am:1.14
--- rtems/testsuites/Makefile.am:1.13 Sat Oct 24 00:40:26 2009
+++ rtems/testsuites/Makefile.am Thu Sep 29 21:31:25 2011
</font><font color='#997700'>@@ -11,6 +11,7 @@
</font> noinst_HEADERS += support/include/buffer_test_io.h
noinst_HEADERS += support/include/test_support.h
noinst_HEADERS += support/include/tmacros.h
<font color='#000088'>+noinst_HEADERS += support/include/pritime.h
</font>
SUBDIRS = @subdirs@
<font color='#006600'>diff -u /dev/null rtems/testsuites/support/include/pritime.h:1.1
--- /dev/null Thu Sep 29 22:10:32 2011
+++ rtems/testsuites/support/include/pritime.h Thu Sep 29 21:31:25 2011
</font><font color='#997700'>@@ -0,0 +1,30 @@
</font><font color='#000088'>+/*
+ * Copyright (c) 2011 by
+ * Ralf Corsépius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+/*
+ * Helper macro to print "time_t"
+ */
+
+#ifndef _PRITIME_H
+#define _PRITIME_H
+
+#include <inttypes.h>
+
+#ifndef SIZEOF_TIME_T
+#error "missing SIZEOF_TIME_T"
+#endif
+
+#if SIZEOF_TIME_T == 8
+#define PRIdtime_t PRId64
+#elif SIZEOF_TIME_T == 4
+#define PRIdtime_t PRId32
+#else
+#error "unsupported size of time_t"
+#endif
+
+#endif
</font></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>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* sp50/init.c, spclockget/init.c: Include "pritime.h".
Use PRIdtime_t to print time_t.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/ChangeLog.diff?r1=text&tr1=1.493&r2=text&tr2=1.494&diff_format=h">M</a></td><td width='1%'>1.494</td><td width='100%'>testsuites/sptests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/sp50/init.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%'>testsuites/sptests/sp50/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spclockget/init.c.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h">M</a></td><td width='1%'>1.8</td><td width='100%'>testsuites/sptests/spclockget/init.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/sptests/ChangeLog:1.493 rtems/testsuites/sptests/ChangeLog:1.494
--- rtems/testsuites/sptests/ChangeLog:1.493 Thu Sep 29 20:55:27 2011
+++ rtems/testsuites/sptests/ChangeLog Thu Sep 29 21:50:48 2011
</font><font color='#997700'>@@ -1,5 +1,10 @@
</font> 2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
<font color='#000088'>+ * sp50/init.c, spclockget/init.c: Include "pritime.h".
+ Use PRIdtime_t to print time_t.
+
+2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
+
</font> * configure.ac: Check for size of time_t.
2011-09-29 Ralf Corsépius <ralf.corsepius@rtems.org>
<font color='#006600'>diff -u rtems/testsuites/sptests/sp50/init.c:1.6 rtems/testsuites/sptests/sp50/init.c:1.7
--- rtems/testsuites/sptests/sp50/init.c:1.6 Thu May 5 11:45:57 2011
+++ rtems/testsuites/sptests/sp50/init.c Thu Sep 29 21:50:48 2011
</font><font color='#997700'>@@ -14,6 +14,7 @@
</font> #endif
#include <tmacros.h>
<font color='#000088'>+#include "pritime.h"
</font>
volatile int Fired;
volatile bool timerRan;
<font color='#997700'>@@ -70,7 +71,7 @@
</font> sc = rtems_clock_get_uptime( &uptime );
directive_failed( sc, "rtems_clock_get_uptime" );
<font color='#880000'>- printf( "Timer fired at %" PRItime_t "\n", uptime.tv_sec );
</font><font color='#000088'>+ printf( "Timer fired at %" PRIdtime_t "\n", uptime.tv_sec );
</font> }
if ( Fired >= 10 ) {
<font color='#006600'>diff -u rtems/testsuites/sptests/spclockget/init.c:1.7 rtems/testsuites/sptests/spclockget/init.c:1.8
--- rtems/testsuites/sptests/spclockget/init.c:1.7 Sun Jul 24 17:10:20 2011
+++ rtems/testsuites/sptests/spclockget/init.c Thu Sep 29 21:50:48 2011
</font><font color='#997700'>@@ -14,6 +14,7 @@
</font> #endif
#include <tmacros.h>
<font color='#000088'>+#include "pritime.h"
</font>
rtems_task Init(
rtems_task_argument ignored
<font color='#997700'>@@ -69,7 +70,7 @@
</font> sc = rtems_clock_get( RTEMS_CLOCK_GET_TIME_VALUE, &timev );
directive_failed( sc, "rtems_clock_get -- Time Value" );
printf(
<font color='#880000'>- "Init - rtems_clock_get - Time Value = %" PRItime_t "\n",
</font><font color='#000088'>+ "Init - rtems_clock_get - Time Value = %" PRIdtime_t "\n",
</font> timev.tv_sec
);
</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>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* psx01/init.c, psx07/init.c, psx09/init.c, psx12/init.c,
psxclock/init.c, psxtimer01/psxtimer.c: Include "pritime.h".
Use PRIdtime_t to print time_t.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/ChangeLog.diff?r1=text&tr1=1.356&r2=text&tr2=1.357&diff_format=h">M</a></td><td width='1%'>1.357</td><td width='100%'>testsuites/psxtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psx01/init.c.diff?r1=text&tr1=1.40&r2=text&tr2=1.41&diff_format=h">M</a></td><td width='1%'>1.41</td><td width='100%'>testsuites/psxtests/psx01/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psx07/init.c.diff?r1=text&tr1=1.37&r2=text&tr2=1.38&diff_format=h">M</a></td><td width='1%'>1.38</td><td width='100%'>testsuites/psxtests/psx07/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psx09/init.c.diff?r1=text&tr1=1.19&r2=text&tr2=1.20&diff_format=h">M</a></td><td width='1%'>1.20</td><td width='100%'>testsuites/psxtests/psx09/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psx12/init.c.diff?r1=text&tr1=1.17&r2=text&tr2=1.18&diff_format=h">M</a></td><td width='1%'>1.18</td><td width='100%'>testsuites/psxtests/psx12/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxclock/init.c.diff?r1=text&tr1=1.12&r2=text&tr2=1.13&diff_format=h">M</a></td><td width='1%'>1.13</td><td width='100%'>testsuites/psxtests/psxclock/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxtimer01/psxtimer.c.diff?r1=text&tr1=1.14&r2=text&tr2=1.15&diff_format=h">M</a></td><td width='1%'>1.15</td><td width='100%'>testsuites/psxtests/psxtimer01/psxtimer.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/psxtests/ChangeLog:1.356 rtems/testsuites/psxtests/ChangeLog:1.357
--- rtems/testsuites/psxtests/ChangeLog:1.356 Thu Sep 29 20:54:51 2011
+++ rtems/testsuites/psxtests/ChangeLog Thu Sep 29 21:53:32 2011
</font><font color='#997700'>@@ -1,5 +1,11 @@
</font> 2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
<font color='#000088'>+ * psx01/init.c, psx07/init.c, psx09/init.c, psx12/init.c,
+ psxclock/init.c, psxtimer01/psxtimer.c: Include "pritime.h".
+ Use PRIdtime_t to print time_t.
+
+2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
+
</font> * configure.ac: Check for size of time_t.
2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
<font color='#006600'>diff -u rtems/testsuites/psxtests/psx01/init.c:1.40 rtems/testsuites/psxtests/psx01/init.c:1.41
--- rtems/testsuites/psxtests/psx01/init.c:1.40 Tue Feb 22 03:47:30 2011
+++ rtems/testsuites/psxtests/psx01/init.c Thu Sep 29 21:53:32 2011
</font><font color='#997700'>@@ -13,11 +13,13 @@
</font> #include "config.h"
#endif
<font color='#880000'>-#define CONFIGURE_INIT
-#include "system.h"
</font> #include <sched.h>
#include <sys/utsname.h>
<font color='#000088'>+#define CONFIGURE_INIT
+#include "system.h"
+#include "pritime.h"
+
</font> void *POSIX_Init(
void *argument
)
<font color='#997700'>@@ -87,7 +89,7 @@
</font>
status = sched_rr_get_interval( getpid(), &tr );
printf(
<font color='#880000'>- "Init: Round Robin quantum is %ld seconds, %ld nanoseconds\n",
</font><font color='#000088'>+ "Init: Round Robin quantum is %" PRIdtime_t " seconds, %ld nanoseconds\n",
</font> tr.tv_sec,
tr.tv_nsec
);
<font color='#006600'>diff -u rtems/testsuites/psxtests/psx07/init.c:1.37 rtems/testsuites/psxtests/psx07/init.c:1.38
--- rtems/testsuites/psxtests/psx07/init.c:1.37 Tue Feb 22 03:47:31 2011
+++ rtems/testsuites/psxtests/psx07/init.c Thu Sep 29 21:53:32 2011
</font><font color='#997700'>@@ -32,6 +32,7 @@
</font> #include "system.h"
#include <errno.h>
#include "tmacros.h"
<font color='#000088'>+#include "pritime.h"
</font>
void print_schedparam(
char *prefix,
<font color='#997700'>@@ -47,10 +48,10 @@
</font> #if defined(_POSIX_SPORADIC_SERVER)
printf( "%ssched_ss_low_priority = %d\n",
prefix, schedparam->sched_ss_low_priority );
<font color='#880000'>- printf( "%ssched_ss_replenish_period = (%ld, %ld)\n", prefix,
</font><font color='#000088'>+ printf( "%ssched_ss_replenish_period = (%" PRIdtime_t ", %ld)\n", prefix,
</font> schedparam->sched_ss_repl_period.tv_sec,
schedparam->sched_ss_repl_period.tv_nsec );
<font color='#880000'>- printf( "%ssched_sched_ss_initial_budget = (%ld, %ld)\n", prefix,
</font><font color='#000088'>+ printf( "%ssched_sched_ss_initial_budget = (%" PRIdtime_t ", %ld)\n", prefix,
</font> schedparam->sched_ss_init_budget.tv_sec,
schedparam->sched_ss_init_budget.tv_nsec );
#else
<font color='#006600'>diff -u rtems/testsuites/psxtests/psx09/init.c:1.19 rtems/testsuites/psxtests/psx09/init.c:1.20
--- rtems/testsuites/psxtests/psx09/init.c:1.19 Tue Feb 22 03:47:31 2011
+++ rtems/testsuites/psxtests/psx09/init.c Thu Sep 29 21:53:32 2011
</font><font color='#997700'>@@ -18,6 +18,7 @@
</font> #define CONFIGURE_INIT
#include "system.h"
#include <errno.h>
<font color='#000088'>+#include "pritime.h"
</font>
void print_schedparam(
char *prefix,
<font color='#997700'>@@ -37,10 +38,10 @@
</font> #if defined(_POSIX_SPORADIC_SERVER)
printf( "%ssched_ss_low_priority = %d\n",
prefix, schedparam->sched_ss_low_priority );
<font color='#880000'>- printf( "%ssched_ss_repl_period = (%ld, %ld)\n", prefix,
</font><font color='#000088'>+ printf( "%ssched_ss_repl_period = (%" PRIdtime_t ", %ld)\n", prefix,
</font> schedparam->sched_ss_repl_period.tv_sec,
schedparam->sched_ss_repl_period.tv_nsec );
<font color='#880000'>- printf( "%ssched_ss_init_budget = (%ld, %ld)\n", prefix,
</font><font color='#000088'>+ printf( "%ssched_ss_init_budget = (%" PRIdtime_t ", %ld)\n", prefix,
</font> schedparam->sched_ss_init_budget.tv_sec,
schedparam->sched_ss_init_budget.tv_nsec );
#else
<font color='#006600'>diff -u rtems/testsuites/psxtests/psx12/init.c:1.17 rtems/testsuites/psxtests/psx12/init.c:1.18
--- rtems/testsuites/psxtests/psx12/init.c:1.17 Tue Feb 22 03:47:31 2011
+++ rtems/testsuites/psxtests/psx12/init.c Thu Sep 29 21:53:32 2011
</font><font color='#997700'>@@ -18,6 +18,7 @@
</font> #define CONFIGURE_INIT
#include "system.h"
#include <errno.h>
<font color='#000088'>+#include "pritime.h"
</font>
void print_schedparam(
char *prefix,
<font color='#997700'>@@ -33,10 +34,10 @@
</font> #if defined(_POSIX_SPORADIC_SERVER)
printf( "%ssched_ss_low_priority = %d\n",
prefix, schedparam->sched_ss_low_priority );
<font color='#880000'>- printf( "%ssched_ss_repl_period = (%ld, %ld)\n", prefix,
</font><font color='#000088'>+ printf( "%ssched_ss_repl_period = (%" PRIdtime_t ", %ld)\n", prefix,
</font> schedparam->sched_ss_repl_period.tv_sec,
schedparam->sched_ss_repl_period.tv_nsec );
<font color='#880000'>- printf( "%ssched_ss_init_budget = (%ld, %ld)\n", prefix,
</font><font color='#000088'>+ printf( "%ssched_ss_init_budget = (%" PRIdtime_t ", %ld)\n", prefix,
</font> schedparam->sched_ss_init_budget.tv_sec,
schedparam->sched_ss_init_budget.tv_nsec );
#else
<font color='#006600'>diff -u rtems/testsuites/psxtests/psxclock/init.c:1.12 rtems/testsuites/psxtests/psxclock/init.c:1.13
--- rtems/testsuites/psxtests/psxclock/init.c:1.12 Wed May 18 00:19:30 2011
+++ rtems/testsuites/psxtests/psxclock/init.c Thu Sep 29 21:53:32 2011
</font><font color='#997700'>@@ -13,10 +13,12 @@
</font> #include "config.h"
#endif
<font color='#880000'>-#include <pmacros.h>
</font> #include <time.h>
#include <errno.h>
<font color='#000088'>+#include "pmacros.h"
+#include "pritime.h"
+
</font> void check_enosys(int status);
void check_enosys(int status)
<font color='#997700'>@@ -84,7 +86,7 @@
</font>
puts( "Init: clock_getres - SUCCESSFUL" );
sc = clock_getres( CLOCK_REALTIME, &tv );
<font color='#880000'>- printf( "Init: resolution = sec (%ld), nsec (%ld)\n", tv.tv_sec, tv.tv_nsec );
</font><font color='#000088'>+ printf( "Init: resolution = sec (%" PRIdtime_t "), nsec (%ld)\n", tv.tv_sec, tv.tv_nsec );
</font> rtems_test_assert( !sc );
/* set the time of day, and print our buffer in multiple ways */
<font color='#997700'>@@ -114,7 +116,7 @@
</font> /* print new times to make sure it has changed and we can get the realtime */
sc = clock_gettime( CLOCK_PROCESS_CPUTIME_ID, &tv );
rtems_test_assert( !sc );
<font color='#880000'>- printf("Time since boot: (%" PRItime_t ", %ld)\n", tv.tv_sec,tv.tv_nsec );
</font><font color='#000088'>+ printf("Time since boot: (%" PRIdtime_t ", %ld)\n", tv.tv_sec,tv.tv_nsec );
</font>
sc = clock_gettime( CLOCK_REALTIME, &tv );
rtems_test_assert( !sc );
<font color='#997700'>@@ -207,7 +209,7 @@
</font>
/* check the time remaining */
<font color='#880000'>- printf( "Init: sec (%ld), nsec (%ld) remaining\n", tr.tv_sec, tr.tv_nsec );
</font><font color='#000088'>+ printf( "Init: sec (%" PRIdtime_t "), nsec (%ld) remaining\n", tr.tv_sec, tr.tv_nsec );
</font> rtems_test_assert( !tr.tv_sec && !tr.tv_nsec );
puts( "Init: nanosleep - 1.35 seconds" );
<font color='#006600'>diff -u rtems/testsuites/psxtests/psxtimer01/psxtimer.c:1.14 rtems/testsuites/psxtests/psxtimer01/psxtimer.c:1.15
--- rtems/testsuites/psxtests/psxtimer01/psxtimer.c:1.14 Tue Feb 22 03:47:36 2011
+++ rtems/testsuites/psxtests/psxtimer01/psxtimer.c Thu Sep 29 21:53:32 2011
</font><font color='#997700'>@@ -35,6 +35,7 @@
</font> #include <time.h> /* time facilities */
#include <stdio.h> /* console facilities */
#include <rtems/score/timespec.h>
<font color='#000088'>+#include "pritime.h"
</font>
void StopTimer(
timer_t timer_id,
<font color='#997700'>@@ -125,7 +126,7 @@
</font> rtems_test_exit(0);
}
printf(
<font color='#880000'>- "task A: timer_settime - value=%" PRItime_t ":%ld interval=%" PRItime_t ":%ld\n",
</font><font color='#000088'>+ "task A: timer_settime - value=%" PRIdtime_t ":%ld interval=%" PRIdtime_t ":%ld\n",
</font> timergetdata.it_value.tv_sec, timergetdata.it_value.tv_nsec,
timergetdata.it_interval.tv_sec, timergetdata.it_interval.tv_nsec
);
<font color='#997700'>@@ -311,7 +312,7 @@
</font> rtems_test_exit(0);
}
printf(
<font color='#880000'>- "task C: timer_gettime - %" PRItime_t ":%ld remaining from %" PRItime_t ":%ld\n",
</font><font color='#000088'>+ "task C: timer_gettime - %" PRIdtime_t ":%ld remaining from %" PRIdtime_t ":%ld\n",
</font> timergetdata.it_value.tv_sec, timergetdata.it_value.tv_nsec,
timergetdata.it_interval.tv_sec, timergetdata.it_interval.tv_nsec
);
</pre>
<p> </p>
<a name='cs4'></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>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* nsecs/init.c: Include "pritime.h".
Use PRIdtime_t to print time_t.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/samples/ChangeLog.diff?r1=text&tr1=1.195&r2=text&tr2=1.196&diff_format=h">M</a></td><td width='1%'>1.196</td><td width='100%'>testsuites/samples/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/samples/nsecs/init.c.diff?r1=text&tr1=1.15&r2=text&tr2=1.16&diff_format=h">M</a></td><td width='1%'>1.16</td><td width='100%'>testsuites/samples/nsecs/init.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/samples/ChangeLog:1.195 rtems/testsuites/samples/ChangeLog:1.196
--- rtems/testsuites/samples/ChangeLog:1.195 Thu Sep 29 20:55:12 2011
+++ rtems/testsuites/samples/ChangeLog Thu Sep 29 21:55:30 2011
</font><font color='#997700'>@@ -1,5 +1,10 @@
</font> 2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
<font color='#000088'>+ * nsecs/init.c: Include "pritime.h".
+ Use PRIdtime_t to print time_t.
+
+2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
+
</font> * configure.ac: Check for size of time_t.
2011-09-16 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
<font color='#006600'>diff -u rtems/testsuites/samples/nsecs/init.c:1.15 rtems/testsuites/samples/nsecs/init.c:1.16
--- rtems/testsuites/samples/nsecs/init.c:1.15 Thu May 5 11:45:40 2011
+++ rtems/testsuites/samples/nsecs/init.c Thu Sep 29 21:55:30 2011
</font><font color='#997700'>@@ -26,7 +26,9 @@
</font> #include <unistd.h>
#include <sys/time.h>
#include <rtems/score/timespec.h> /* _Timespec_Substract */
<font color='#000088'>+
</font> #include "tmacros.h"
<font color='#000088'>+#include "pritime.h"
</font>
char *my_ctime( time_t t )
{
<font color='#997700'>@@ -92,7 +94,7 @@
</font> my_ctime(stop.tv_sec), stop.tv_nsec
);
<font color='#880000'>- printf( " --> %" PRItime_t ":%ld\n", diff.tv_sec, diff.tv_nsec );
</font><font color='#000088'>+ printf( " --> %" PRIdtime_t ":%ld\n", diff.tv_sec, diff.tv_nsec );
</font> }
/*
<font color='#997700'>@@ -106,7 +108,7 @@
</font> rtems_clock_get_uptime( &stop );
subtract_em( &start, &stop, &diff );
<font color='#880000'>- printf( "%" PRItime_t ":%ld %" PRItime_t ":%ld --> %" PRItime_t ":%ld\n",
</font><font color='#000088'>+ printf( "%" PRIdtime_t ":%ld %" PRIdtime_t ":%ld --> %" PRIdtime_t ":%ld\n",
</font> start.tv_sec, start.tv_nsec,
stop.tv_sec, stop.tv_nsec,
diff.tv_sec, diff.tv_nsec
<font color='#997700'>@@ -127,7 +129,7 @@
</font> rtems_clock_get_uptime( &stop );
subtract_em( &start, &stop, &diff );
<font color='#880000'>- printf( "loop of %d %" PRItime_t ":%ld %" PRItime_t ":%ld --> %" PRItime_t ":%ld\n",
</font><font color='#000088'>+ printf( "loop of %d %" PRIdtime_t ":%ld %" PRIdtime_t ":%ld --> %" PRIdtime_t ":%ld\n",
</font> max,
start.tv_sec, start.tv_nsec,
stop.tv_sec, stop.tv_nsec,
</pre>
<p> </p>
<a name='cs5'></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>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Remove PRItime_t.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/ChangeLog.diff?r1=text&tr1=1.189&r2=text&tr2=1.190&diff_format=h">M</a></td><td width='1%'>1.190</td><td width='100%'>testsuites/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/support/include/tmacros.h.diff?r1=text&tr1=1.57&r2=text&tr2=1.58&diff_format=h">M</a></td><td width='1%'>1.58</td><td width='100%'>testsuites/support/include/tmacros.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/ChangeLog:1.189 rtems/testsuites/ChangeLog:1.190
--- rtems/testsuites/ChangeLog:1.189 Thu Sep 29 21:31:25 2011
+++ rtems/testsuites/ChangeLog Thu Sep 29 21:58:15 2011
</font><font color='#997700'>@@ -1,5 +1,8 @@
</font> 2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
<font color='#000088'>+ * support/include/tmacros.h: Remove PRItime_t.
+
+2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
</font> * support/include/pritime.h: New.
* Makefile.am: Add support/include/pritime.h
<font color='#006600'>diff -u rtems/testsuites/support/include/tmacros.h:1.57 rtems/testsuites/support/include/tmacros.h:1.58
--- rtems/testsuites/support/include/tmacros.h:1.57 Fri Jul 1 09:28:03 2011
+++ rtems/testsuites/support/include/tmacros.h Thu Sep 29 21:58:15 2011
</font><font color='#997700'>@@ -273,10 +273,6 @@
</font> * certain system types on different targets.
*/
<font color='#880000'>-/* HACK: Presume time_t to be a "long" */
-/* HACK: There is no portable way to print time_t's */
-#define PRItime_t "ld"
-
</font> #if defined(RTEMS_USE_16_BIT_OBJECT)
#define PRIxrtems_id PRIx16
#else
</pre>
<p> </p>
<a name='cs6'></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>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* fserror/test.c, fslink/test.c, fspatheval/test.c,
fspermission/test.c, fsrdwr/init.c, fssymlink/test.c,
fstime/test.c, support/fstest_support.c, support/ramdisk_support.c:
Explicitly include "pmacros.h".
* support/fstest.h: Don't include "pmacros.h".
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/ChangeLog.diff?r1=text&tr1=1.10&r2=text&tr2=1.11&diff_format=h">M</a></td><td width='1%'>1.11</td><td width='100%'>testsuites/fstests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/fserror/test.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%'>testsuites/fstests/fserror/test.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/fslink/test.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%'>testsuites/fstests/fslink/test.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/fspatheval/test.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%'>testsuites/fstests/fspatheval/test.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/fspermission/test.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%'>testsuites/fstests/fspermission/test.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/fsrdwr/init.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%'>testsuites/fstests/fsrdwr/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/fssymlink/test.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%'>testsuites/fstests/fssymlink/test.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/fstime/test.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%'>testsuites/fstests/fstime/test.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/support/fstest.h.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%'>testsuites/fstests/support/fstest.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/support/fstest_support.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%'>testsuites/fstests/support/fstest_support.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/support/ramdisk_support.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%'>testsuites/fstests/support/ramdisk_support.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/fstests/ChangeLog:1.10 rtems/testsuites/fstests/ChangeLog:1.11
--- rtems/testsuites/fstests/ChangeLog:1.10 Wed Sep 7 02:43:15 2011
+++ rtems/testsuites/fstests/ChangeLog Thu Sep 29 22:07:03 2011
</font><font color='#997700'>@@ -1,3 +1,11 @@
</font><font color='#000088'>+2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * fserror/test.c, fslink/test.c, fspatheval/test.c,
+ fspermission/test.c, fsrdwr/init.c, fssymlink/test.c,
+ fstime/test.c, support/fstest_support.c, support/ramdisk_support.c:
+ Explicitly include "pmacros.h".
+ * support/fstest.h: Don't include "pmacros.h".
+
</font> 2011-09-07 Ralf Corsépius <ralf.corsepius@rtems.org>
* imfs_support/fs_supprot.h, support/fstest.h,
<font color='#006600'>diff -u rtems/testsuites/fstests/fserror/test.c:1.4 rtems/testsuites/fstests/fserror/test.c:1.5
--- rtems/testsuites/fstests/fserror/test.c:1.4 Wed Sep 7 02:42:12 2011
+++ rtems/testsuites/fstests/fserror/test.c Thu Sep 29 22:07:21 2011
</font><font color='#997700'>@@ -24,6 +24,7 @@
</font> #include <unistd.h>
#include "fstest.h"
<font color='#000088'>+#include "pmacros.h"
</font>
void open_mkdir_error (void)
{
<font color='#006600'>diff -u rtems/testsuites/fstests/fslink/test.c:1.5 rtems/testsuites/fstests/fslink/test.c:1.6
--- rtems/testsuites/fstests/fslink/test.c:1.5 Wed Sep 7 02:42:12 2011
+++ rtems/testsuites/fstests/fslink/test.c Thu Sep 29 22:07:21 2011
</font><font color='#997700'>@@ -25,6 +25,7 @@
</font> #include <math.h>
#include "fstest.h"
<font color='#000088'>+#include "pmacros.h"
</font>
/*
* Test if the successful call works as expect
<font color='#006600'>diff -u rtems/testsuites/fstests/fspatheval/test.c:1.3 rtems/testsuites/fstests/fspatheval/test.c:1.4
--- rtems/testsuites/fstests/fspatheval/test.c:1.3 Wed Sep 7 02:42:12 2011
+++ rtems/testsuites/fstests/fspatheval/test.c Thu Sep 29 22:07:21 2011
</font><font color='#997700'>@@ -23,6 +23,7 @@
</font> #include <unistd.h>
#include "fstest.h"
<font color='#000088'>+#include "pmacros.h"
</font>
#define BUF_SIZE 100
<font color='#006600'>diff -u rtems/testsuites/fstests/fspermission/test.c:1.4 rtems/testsuites/fstests/fspermission/test.c:1.5
--- rtems/testsuites/fstests/fspermission/test.c:1.4 Wed Sep 7 02:42:12 2011
+++ rtems/testsuites/fstests/fspermission/test.c Thu Sep 29 22:07:21 2011
</font><font color='#997700'>@@ -25,6 +25,7 @@
</font> #include <unistd.h>
#include "fstest.h"
<font color='#000088'>+#include "pmacros.h"
</font>
/*
* Test the umask
<font color='#006600'>diff -u rtems/testsuites/fstests/fsrdwr/init.c:1.4 rtems/testsuites/fstests/fsrdwr/init.c:1.5
--- rtems/testsuites/fstests/fsrdwr/init.c:1.4 Wed Sep 7 02:42:12 2011
+++ rtems/testsuites/fstests/fsrdwr/init.c Thu Sep 29 22:07:21 2011
</font><font color='#997700'>@@ -24,6 +24,7 @@
</font> #include <unistd.h>
#include "fstest.h"
<font color='#000088'>+#include "pmacros.h"
</font>
const char *databuf =
"Happy days are here again. Happy days are here again.1Happy "
<font color='#006600'>diff -u rtems/testsuites/fstests/fssymlink/test.c:1.5 rtems/testsuites/fstests/fssymlink/test.c:1.6
--- rtems/testsuites/fstests/fssymlink/test.c:1.5 Wed Sep 7 02:42:12 2011
+++ rtems/testsuites/fstests/fssymlink/test.c Thu Sep 29 22:07:21 2011
</font><font color='#997700'>@@ -26,6 +26,7 @@
</font> #include <dirent.h>
#include "fstest.h"
<font color='#000088'>+#include "pmacros.h"
</font>
/*
* Test the function of symlink
<font color='#006600'>diff -u rtems/testsuites/fstests/fstime/test.c:1.4 rtems/testsuites/fstests/fstime/test.c:1.5
--- rtems/testsuites/fstests/fstime/test.c:1.4 Wed Sep 7 02:42:12 2011
+++ rtems/testsuites/fstests/fstime/test.c Thu Sep 29 22:07:21 2011
</font><font color='#997700'>@@ -24,7 +24,9 @@
</font> #include <string.h>
#include <unistd.h>
#include <utime.h>
<font color='#000088'>+
</font> #include "fstest.h"
<font color='#000088'>+#include "pmacros.h"
</font>
void time_test01 (void)
{
<font color='#006600'>diff -u rtems/testsuites/fstests/support/fstest.h:1.6 rtems/testsuites/fstests/support/fstest.h:1.7
--- rtems/testsuites/fstests/support/fstest.h:1.6 Wed Sep 7 02:43:15 2011
+++ rtems/testsuites/fstests/support/fstest.h Thu Sep 29 22:07:21 2011
</font><font color='#997700'>@@ -12,8 +12,6 @@
</font> #ifndef __FSTEST_H
#define __FSTEST_H
<font color='#880000'>-#include "pmacros.h"
-
</font> #define TIME_PRECISION (2)
#define TIME_EQUAL(x,y) (abs((x)-(y))<TIME_PRECISION)
<font color='#006600'>diff -u rtems/testsuites/fstests/support/fstest_support.c:1.5 rtems/testsuites/fstests/support/fstest_support.c:1.6
--- rtems/testsuites/fstests/support/fstest_support.c:1.5 Wed Sep 7 02:42:12 2011
+++ rtems/testsuites/fstests/support/fstest_support.c Thu Sep 29 22:07:21 2011
</font><font color='#997700'>@@ -18,6 +18,7 @@
</font> #include <fcntl.h>
#include <string.h>
#include <unistd.h>
<font color='#000088'>+#include <stdlib.h> /* exit */
</font> #include <sys/stat.h>
#include <sys/types.h>
<font color='#997700'>@@ -27,6 +28,7 @@
</font> #include "fs_config.h"
#include "fstest.h"
<font color='#000088'>+#include "pmacros.h"
</font>
#define TEMP_DIR "waterbuffalo"
<font color='#006600'>diff -u rtems/testsuites/fstests/support/ramdisk_support.c:1.5 rtems/testsuites/fstests/support/ramdisk_support.c:1.6
--- rtems/testsuites/fstests/support/ramdisk_support.c:1.5 Wed Sep 7 02:42:12 2011
+++ rtems/testsuites/fstests/support/ramdisk_support.c Thu Sep 29 22:07:21 2011
</font><font color='#997700'>@@ -19,6 +19,8 @@
</font>
#include "ramdisk_support.h"
#include "fstest.h"
<font color='#000088'>+#include "pmacros.h"
+
</font> /*
* Ramdisk information
*/
</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>