mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 06:08:20 +00:00
2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Add PRItime_t.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* support/include/tmacros.h: Add PRItime_t.
|
||||
|
||||
2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* support/include/tmacros.h (print_time): Use PRIu32 instead of %d.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user