diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-26 05:38:04 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-26 05:38:04 +0000 |
commit | 88f692dac2f32f48044730e3ef7fa34a46a23241 (patch) | |
tree | 3f718059e99c8626a6cb1d29224736c150d1ac65 | |
parent | aea32337ed8f24ef3397e09552730cc111521236 (diff) |
2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h (print_time): Use PRIu32 instead of %d.
-rw-r--r-- | testsuites/ChangeLog | 4 | ||||
-rw-r--r-- | testsuites/support/include/tmacros.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/testsuites/ChangeLog b/testsuites/ChangeLog index b574d2d601..d07b6b1007 100644 --- a/testsuites/ChangeLog +++ b/testsuites/ChangeLog @@ -1,5 +1,9 @@ 2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org> + * support/include/tmacros.h (print_time): Use PRIu32 instead of %d. + +2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org> + * support/include/test_support.h: Add missing prototypes. * support/include/tmacros.h: Move _Thread_Dispatch_disable_level outside of check_dispatch_disable_level. diff --git a/testsuites/support/include/tmacros.h b/testsuites/support/include/tmacros.h index 5ce53cde09..384ee73d8e 100644 --- a/testsuites/support/include/tmacros.h +++ b/testsuites/support/include/tmacros.h @@ -168,7 +168,7 @@ extern volatile uint32_t _Thread_Dispatch_disable_level; #define print_time(_s1, _tb, _s2) \ do { \ - printf( "%s%02d:%02d:%02d %02d/%02d/%04d%s", \ + printf( "%s%02" PRIu32 ":%02" PRIu32 ":%02" PRIu32 " %02" PRIu32 "/%02" PRIu32 "/%04" PRIu32 "%s", \ _s1, (_tb)->hour, (_tb)->minute, (_tb)->second, \ (_tb)->month, (_tb)->day, (_tb)->year, _s2 ); \ } while ( 0 ) |