Use %ld to print *.tv_nsec.

This commit is contained in:
Ralf Corsepius
2009-10-27 03:57:28 +00:00
parent 669ad957ae
commit 17c7533410
3 changed files with 10 additions and 10 deletions

View File

@@ -110,7 +110,7 @@ rtems_task Init(
/* print new times to make sure it has changed and we can get the realtime */
sc = clock_gettime( CLOCK_PROCESS_CPUTIME, &tv );
rtems_test_assert( !sc );
printf("Time since boot: (%" PRItime_t ", %d)\n", tv.tv_sec,tv.tv_nsec );
printf("Time since boot: (%" PRItime_t ", %ld)\n", tv.tv_sec,tv.tv_nsec );
sc = clock_gettime( CLOCK_REALTIME, &tv );
rtems_test_assert( !sc );