<!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-10-02)</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-10-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/main_time.c: Introduce PRIdtime_t.
</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.2931&r2=text&tr2=1.2932&diff_format=h">M</a></td><td width='1%'>1.2932</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libmisc/shell/main_time.c.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/libmisc/shell/main_time.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2931 rtems/cpukit/ChangeLog:1.2932
--- rtems/cpukit/ChangeLog:1.2931 Sun Oct 2 00:23:45 2011
+++ rtems/cpukit/ChangeLog Sun Oct 2 03:15:01 2011
</font><font color='#997700'>@@ -1,5 +1,9 @@
</font> 2011-10-02 Ralf Corsépius <ralf.corsepius@rtems.org>
<font color='#000088'>+ * libmisc/shell/main_time.c: Introduce PRIdtime_t.
+
+2011-10-02 Ralf Corsépius <ralf.corsepius@rtems.org>
+
</font> * libnetworking/libc/res_comp.c: Eliminate unused var "ppch".
2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
<font color='#006600'>diff -u rtems/cpukit/libmisc/shell/main_time.c:1.2 rtems/cpukit/libmisc/shell/main_time.c:1.3
--- rtems/cpukit/libmisc/shell/main_time.c:1.2 Sun Nov 29 06:12:39 2009
+++ rtems/cpukit/libmisc/shell/main_time.c Sun Oct 2 03:15:02 2011
</font><font color='#997700'>@@ -17,6 +17,7 @@
</font> #include <stdio.h>
#include <unistd.h>
#include <string.h>
<font color='#000088'>+#include <inttypes.h>
</font> #include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
<font color='#997700'>@@ -25,6 +26,15 @@
</font> #include <rtems/shell.h>
#include "internal.h"
<font color='#000088'>+/* Helper macro to print "time_t" */
+#if SIZEOF_TIME_T == 8
+#define PRIdtime_t PRId64
+#elif SIZEOF_TIME_T == 4
+#define PRIdtime_t PRId32
+#else
+#error "PRIdtime_t: unsupported size of time_t"
+#endif
+
</font> int rtems_shell_main_time(
int argc,
char *argv[]
<font color='#997700'>@@ -66,7 +76,7 @@
</font> period.tv_nsec += 1000000000UL;
}
<font color='#880000'>- printf("time: %li:%02li:%02li.%03li\n",
</font><font color='#000088'>+ printf("time: %" PRIdtime_t ":%02" PRIdtime_t ":%02" PRIdtime_t ".%03li\n",
</font> period.tv_sec / 3600,
period.tv_sec / 60, period.tv_sec % 60,
period.tv_nsec / 1000000);
</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>