2001-08-16 Joel Sherrill <joel@OARcorp.com>

* include/tmacros.h: Attempt to print errno as further information.
This commit is contained in:
Joel Sherrill
2001-08-16 19:42:02 +00:00
parent 94dfe0f713
commit 413043b7c0
4 changed files with 16 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
2001-08-16 Joel Sherrill <joel@OARcorp.com>
* include/tmacros.h: Attempt to print errno as further information.
2001-05-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.in: Use RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]).

View File

@@ -91,8 +91,10 @@ extern "C" {
do { \
check_dispatch_disable_level( _level ); \
if ( (_stat) != (_desired) ) { \
printf( "\n%s FAILED -- expected (%s) got (%s)\n", \
(_msg), strerror(_desired), strerror(_stat) ); \
printf( "\n%s FAILED -- expected (%d - %s) got (%d - %s)\n", \
(_msg), _desired, strerror(_desired), _stat, strerror(_stat) ); \
printf( "\n FAILED -- errno (%d - %s)\n", \
errno, strerror(errno) ); \
fflush(stdout); \
exit( _stat ); \
} \