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".
This commit is contained in:
Ralf Corsepius
2009-10-27 08:12:25 +00:00
parent acf5212020
commit d0f47c22fb
2 changed files with 11 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
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".
2009-10-27 Ralf Corsépius <ralf.corsepius@rtems.org> 2009-10-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Add PRIdThread_Entry_numeric_type. * support/include/tmacros.h: Add PRIdThread_Entry_numeric_type.

View File

@@ -105,10 +105,11 @@ extern volatile uint32_t _Thread_Dispatch_disable_level;
#define fatal_posix_service_status_errno( _stat, _desired, _msg ) \ #define fatal_posix_service_status_errno( _stat, _desired, _msg ) \
if ( (_stat != -1) && (errno) != (_desired) ) { \ if ( (_stat != -1) && (errno) != (_desired) ) { \
long statx = _stat; \
check_dispatch_disable_level( 0 ); \ 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), \ (_msg), _desired, strerror(_desired), \
_stat, errno, strerror(errno) ); \ statx, errno, strerror(errno) ); \
FLUSH_OUTPUT(); \ FLUSH_OUTPUT(); \
rtems_test_exit( _stat ); \ 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 */ /* rtems_task_argument is a typedef to Thread_Entry_numeric_type */
#define PRIdrtems_task_argument PRIdThread_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 #ifdef __cplusplus
} }
#endif #endif