diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 08:06:06 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 08:06:06 +0100 |
commit | 2272905333bf42690d3badbe052586f568e19436 (patch) | |
tree | 408bbae54454310b6927606dfb62c6d092dec58d /testsuites/psxtests/psxfatal_support | |
parent | bsps/sparc: Make local functions for amba plug&play static. (diff) | |
download | rtems-2272905333bf42690d3badbe052586f568e19436.tar.bz2 |
tests: Use rtems_status_text()
Diffstat (limited to 'testsuites/psxtests/psxfatal_support')
-rw-r--r-- | testsuites/psxtests/psxfatal_support/init.c | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/testsuites/psxtests/psxfatal_support/init.c b/testsuites/psxtests/psxfatal_support/init.c index 56747bba8d..000f883293 100644 --- a/testsuites/psxtests/psxfatal_support/init.c +++ b/testsuites/psxtests/psxfatal_support/init.c @@ -34,34 +34,6 @@ void *POSIX_Init( rtems_test_exit(0); } -char *Errors_Rtems[] = { - "RTEMS_SUCCESSFUL", /* successful completion */ - "RTEMS_TASK_EXITTED", /* returned from a task */ - "RTEMS_MP_NOT_CONFIGURED", /* multiprocessing not configured */ - "RTEMS_INVALID_NAME", /* invalid object name */ - "RTEMS_INVALID_ID", /* invalid object id */ - "RTEMS_TOO_MANY", /* too many */ - "RTEMS_TIMEOUT", /* timed out waiting */ - "RTEMS_OBJECT_WAS_DELETED", /* object was deleted while waiting */ - "RTEMS_INVALID_SIZE", /* specified size was invalid */ - "RTEMS_INVALID_ADDRESS", /* address specified is invalid */ - "RTEMS_INVALID_NUMBER", /* number was invalid */ - "RTEMS_NOT_DEFINED", /* item has not been initialized */ - "RTEMS_RESOURCE_IN_USE", /* resources still outstanding */ - "RTEMS_UNSATISFIED", /* request not satisfied */ - "RTEMS_INCORRECT_STATE", /* task is in wrong state */ - "RTEMS_ALREADY_SUSPENDED", /* task already in state */ - "RTEMS_ILLEGAL_ON_SELF", /* illegal operation on calling task */ - "RTEMS_ILLEGAL_ON_REMOTE_OBJECT", /* illegal operation for remote object */ - "RTEMS_CALLED_FROM_ISR", /* called from ISR */ - "RTEMS_INVALID_PRIORITY", /* invalid task priority */ - "RTEMS_INVALID_CLOCK", /* invalid date/time */ - "RTEMS_INVALID_NODE", /* invalid node id */ - "RTEMS_NOT_OWNER_OF_RESOURCE", /* not owner of resource */ - "RTEMS_NOT_CONFIGURED", /* directive not configured */ - "RTEMS_NOT_IMPLEMENTED" /* directive not implemented */ -}; - void Put_Error( uint32_t source, uint32_t error ) { if ( source == INTERNAL_ERROR_CORE ) { @@ -71,7 +43,7 @@ void Put_Error( uint32_t source, uint32_t error ) if (error > RTEMS_NOT_IMPLEMENTED ) printk("Unknown Internal Rtems Error (%d)", error); else - printk( Errors_Rtems[ error ] ); + printk( "%s", rtems_status_text( error ) ); } else if (source == INTERNAL_ERROR_POSIX_API ) { printk( "SOURCE=%d ERROR=%d %s", source, error, strerror( error ) ); |