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:
Ralf Corsepius
2011-09-30 02:50:48 +00:00
parent 30e49544d5
commit f57f5ce2f8
3 changed files with 9 additions and 2 deletions

View File

@@ -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
);