Changeset d44c86b in rtems for testsuites/samples


Ignore:
Timestamp:
Sep 30, 2011, 2:55:30 AM (8 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
bf08a0f
Parents:
4562dd8
Message:

2011-09-30 Ralf Corsépius <ralf.corsepius@…>

  • nsecs/init.c: Include "pritime.h". Use PRIdtime_t to print time_t.
Location:
testsuites/samples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/samples/ChangeLog

    r4562dd8 rd44c86b  
     12011-09-30      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * nsecs/init.c: Include "pritime.h".
     4        Use PRIdtime_t to print time_t.
     5
    162011-09-30      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • testsuites/samples/nsecs/init.c

    r4562dd8 rd44c86b  
    2727#include <sys/time.h>
    2828#include <rtems/score/timespec.h> /* _Timespec_Substract */
     29
    2930#include "tmacros.h"
     31#include "pritime.h"
    3032
    3133char *my_ctime( time_t t )
     
    9395    );
    9496
    95     printf( " --> %" PRItime_t ":%ld\n", diff.tv_sec, diff.tv_nsec );
     97    printf( " --> %" PRIdtime_t ":%ld\n", diff.tv_sec, diff.tv_nsec );
    9698  }
    9799
     
    107109
    108110    subtract_em( &start, &stop, &diff );
    109     printf( "%" PRItime_t ":%ld %" PRItime_t ":%ld --> %" PRItime_t ":%ld\n",
     111    printf( "%" PRIdtime_t ":%ld %" PRIdtime_t ":%ld --> %" PRIdtime_t ":%ld\n",
    110112      start.tv_sec, start.tv_nsec,
    111113      stop.tv_sec, stop.tv_nsec,
     
    128130
    129131    subtract_em( &start, &stop, &diff );
    130     printf( "loop of %d %" PRItime_t ":%ld %" PRItime_t ":%ld --> %" PRItime_t ":%ld\n",
     132    printf( "loop of %d %" PRIdtime_t ":%ld %" PRIdtime_t ":%ld --> %" PRIdtime_t ":%ld\n",
    131133      max,
    132134      start.tv_sec, start.tv_nsec,
Note: See TracChangeset for help on using the changeset viewer.