From b701261ccfe0649df88aabd905efd4eddfad8af9 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 26 Oct 2009 09:06:39 +0000 Subject: [PATCH] =?UTF-8?q?2009-10-26=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * support/include/tmacros.h: Add PRItime_t. --- testsuites/ChangeLog | 4 ++++ testsuites/support/include/tmacros.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/testsuites/ChangeLog b/testsuites/ChangeLog index d07b6b1007..5810d4505a 100644 --- a/testsuites/ChangeLog +++ b/testsuites/ChangeLog @@ -1,3 +1,7 @@ +2009-10-26 Ralf Corsépius + + * support/include/tmacros.h: Add PRItime_t. + 2009-10-26 Ralf Corsépius * support/include/tmacros.h (print_time): Use PRIu32 instead of %d. diff --git a/testsuites/support/include/tmacros.h b/testsuites/support/include/tmacros.h index 384ee73d8e..43691e5987 100644 --- a/testsuites/support/include/tmacros.h +++ b/testsuites/support/include/tmacros.h @@ -251,6 +251,12 @@ extern volatile uint32_t _Thread_Dispatch_disable_level; rtems_test_exit(0); \ } +/* + * HACK: PRItime_t: inttypes.h-style macro to print a time_t. + * The implementation below presumes time_t to be a "long". + */ +#define PRItime_t "ld" + #ifdef __cplusplus } #endif