diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-27 08:12:25 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-27 08:12:25 +0000 |
commit | d0f47c22fb04dc6e0e4aaec623dadd712bb42a45 (patch) | |
tree | 8081e1faa0a911f44894dcb1c052110ec45c8371 /testsuites/support | |
parent | 2009-10-27 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-d0f47c22fb04dc6e0e4aaec623dadd712bb42a45.tar.bz2 |
2009-10-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Add PRIxrtems_event_set.
(fatal_posix_service_status_errno) Add local "long" var "statx".
Diffstat (limited to 'testsuites/support')
-rw-r--r-- | testsuites/support/include/tmacros.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/support/include/tmacros.h b/testsuites/support/include/tmacros.h index 91a53a5995..1876d22937 100644 --- a/testsuites/support/include/tmacros.h +++ b/testsuites/support/include/tmacros.h @@ -105,10 +105,11 @@ extern volatile uint32_t _Thread_Dispatch_disable_level; #define fatal_posix_service_status_errno( _stat, _desired, _msg ) \ if ( (_stat != -1) && (errno) != (_desired) ) { \ + long statx = _stat; \ check_dispatch_disable_level( 0 ); \ - printf( "\n%s FAILED -- expected (%d - %s) got (%d %d - %s)\n", \ + printf( "\n%s FAILED -- expected (%d - %s) got (%ld %d - %s)\n", \ (_msg), _desired, strerror(_desired), \ - _stat, errno, strerror(errno) ); \ + statx, errno, strerror(errno) ); \ FLUSH_OUTPUT(); \ rtems_test_exit( _stat ); \ } @@ -278,6 +279,9 @@ extern volatile uint32_t _Thread_Dispatch_disable_level; /* rtems_task_argument is a typedef to Thread_Entry_numeric_type */ #define PRIdrtems_task_argument PRIdThread_Entry_numeric_type +/* rtems_event_set is a typedef to unit32_t */ +#define PRIxrtems_event_set PRIx32 + #ifdef __cplusplus } #endif |