diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-01-27 13:05:13 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-01-27 13:47:17 +0100 |
commit | 565d8daad54c42ef28da849ff6dcec0a6b009e09 (patch) | |
tree | 0b2b3f2955f74efdcd98493300bca8bac0a03bd5 /testsuites/psxtests/psxfatal_support/init.c | |
parent | Fixed virtex4,5 BSP compile time warnings (diff) | |
download | rtems-565d8daad54c42ef28da849ff6dcec0a6b009e09.tar.bz2 |
testsuites: Use rtems_fatal_source_description()
Diffstat (limited to 'testsuites/psxtests/psxfatal_support/init.c')
-rw-r--r-- | testsuites/psxtests/psxfatal_support/init.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/testsuites/psxtests/psxfatal_support/init.c b/testsuites/psxtests/psxfatal_support/init.c index ee1e33e708..06c90a730d 100644 --- a/testsuites/psxtests/psxfatal_support/init.c +++ b/testsuites/psxtests/psxfatal_support/init.c @@ -34,12 +34,6 @@ void *POSIX_Init( rtems_test_exit(0); } -char *Sources[] = { - "INTERNAL_ERROR_CORE", - "INTERNAL_ERROR_RTEMS_API", - "INTERNAL_ERROR_POSIX_API", -}; - char *Errors_Rtems[] = { "RTEMS_SUCCESSFUL", /* successful completion */ "RTEMS_TASK_EXITTED", /* returned from a task */ @@ -84,12 +78,9 @@ void Put_Error( uint32_t source, uint32_t error ) } } -void Put_Source( uint32_t source ) +void Put_Source( rtems_fatal_source source ) { - if ( source > INTERNAL_ERROR_POSIX_API ) - printk("Unknown Source (%d)", source); - else - printk( Sources[ source ] ); + printk( "%s", rtems_fatal_source_description( source ) ); } |