forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Check for size of time_t.
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#endif
|
||||
|
||||
#include <tmacros.h>
|
||||
#include "pritime.h"
|
||||
|
||||
volatile int Fired;
|
||||
volatile bool timerRan;
|
||||
@@ -70,7 +71,7 @@ rtems_task Init(
|
||||
sc = rtems_clock_get_uptime( &uptime );
|
||||
directive_failed( sc, "rtems_clock_get_uptime" );
|
||||
|
||||
printf( "Timer fired at %" PRItime_t "\n", uptime.tv_sec );
|
||||
printf( "Timer fired at %" PRIdtime_t "\n", uptime.tv_sec );
|
||||
}
|
||||
|
||||
if ( Fired >= 10 ) {
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#endif
|
||||
|
||||
#include <tmacros.h>
|
||||
#include "pritime.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument ignored
|
||||
@@ -69,7 +70,7 @@ rtems_task Init(
|
||||
sc = rtems_clock_get( RTEMS_CLOCK_GET_TIME_VALUE, &timev );
|
||||
directive_failed( sc, "rtems_clock_get -- Time Value" );
|
||||
printf(
|
||||
"Init - rtems_clock_get - Time Value = %" PRItime_t "\n",
|
||||
"Init - rtems_clock_get - Time Value = %" PRIdtime_t "\n",
|
||||
timev.tv_sec
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user