Now print strings -- not error numbers.

This commit is contained in:
Joel Sherrill
2000-01-05 18:17:01 +00:00
parent 99e7ab890b
commit f388d36d84
2 changed files with 6 additions and 4 deletions

View File

@@ -25,6 +25,7 @@ extern "C" {
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <rtems/error.h>
#define FOREVER 1 /* infinite loop */
@@ -60,8 +61,8 @@ extern "C" {
do { \
check_dispatch_disable_level( _level ); \
if ( (_stat) != (_desired) ) { \
printf( "\n%s FAILED -- expected (%d) got (%d)\n", \
(_msg), (_desired), (_stat) ); \
printf( "\n%s FAILED -- expected (%s) got (%s)\n", \
(_msg), rtems_status_text(_desired), rtems_status_text(_stat) ); \
fflush(stdout); \
exit( _stat ); \
} \