forked from Imagelibrary/rtems
Now print strings -- not error numbers.
This commit is contained in:
@@ -25,6 +25,7 @@ extern "C" {
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <rtems/error.h>
|
||||||
|
|
||||||
#define FOREVER 1 /* infinite loop */
|
#define FOREVER 1 /* infinite loop */
|
||||||
|
|
||||||
@@ -60,8 +61,8 @@ extern "C" {
|
|||||||
do { \
|
do { \
|
||||||
check_dispatch_disable_level( _level ); \
|
check_dispatch_disable_level( _level ); \
|
||||||
if ( (_stat) != (_desired) ) { \
|
if ( (_stat) != (_desired) ) { \
|
||||||
printf( "\n%s FAILED -- expected (%d) got (%d)\n", \
|
printf( "\n%s FAILED -- expected (%s) got (%s)\n", \
|
||||||
(_msg), (_desired), (_stat) ); \
|
(_msg), rtems_status_text(_desired), rtems_status_text(_stat) ); \
|
||||||
fflush(stdout); \
|
fflush(stdout); \
|
||||||
exit( _stat ); \
|
exit( _stat ); \
|
||||||
} \
|
} \
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ extern "C" {
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <rtems/error.h>
|
||||||
|
|
||||||
#define FOREVER 1 /* infinite loop */
|
#define FOREVER 1 /* infinite loop */
|
||||||
|
|
||||||
@@ -60,8 +61,8 @@ extern "C" {
|
|||||||
do { \
|
do { \
|
||||||
check_dispatch_disable_level( _level ); \
|
check_dispatch_disable_level( _level ); \
|
||||||
if ( (_stat) != (_desired) ) { \
|
if ( (_stat) != (_desired) ) { \
|
||||||
printf( "\n%s FAILED -- expected (%d) got (%d)\n", \
|
printf( "\n%s FAILED -- expected (%s) got (%s)\n", \
|
||||||
(_msg), (_desired), (_stat) ); \
|
(_msg), rtems_status_text(_desired), rtems_status_text(_stat) ); \
|
||||||
fflush(stdout); \
|
fflush(stdout); \
|
||||||
exit( _stat ); \
|
exit( _stat ); \
|
||||||
} \
|
} \
|
||||||
|
|||||||
Reference in New Issue
Block a user