summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spfatal_support/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/sptests/spfatal_support/init.c')
-rw-r--r--testsuites/sptests/spfatal_support/init.c21
1 files changed, 5 insertions, 16 deletions
diff --git a/testsuites/sptests/spfatal_support/init.c b/testsuites/sptests/spfatal_support/init.c
index 5554e88762..eb7a167361 100644
--- a/testsuites/sptests/spfatal_support/init.c
+++ b/testsuites/sptests/spfatal_support/init.c
@@ -34,13 +34,6 @@ rtems_task 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 */
@@ -82,19 +75,15 @@ 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 ) );
}
-
void Fatal_extension(
- uint32_t source,
- bool is_internal,
- uint32_t error
+ rtems_fatal_source source,
+ bool is_internal,
+ rtems_fatal_code error
)
{
print_test_begin_message();