forked from Imagelibrary/rtems
testsuites: Use rtems_fatal_source_description()
This commit is contained in:
@@ -34,12 +34,6 @@ void *POSIX_Init(
|
|||||||
rtems_test_exit(0);
|
rtems_test_exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
char *Sources[] = {
|
|
||||||
"INTERNAL_ERROR_CORE",
|
|
||||||
"INTERNAL_ERROR_RTEMS_API",
|
|
||||||
"INTERNAL_ERROR_POSIX_API",
|
|
||||||
};
|
|
||||||
|
|
||||||
char *Errors_Rtems[] = {
|
char *Errors_Rtems[] = {
|
||||||
"RTEMS_SUCCESSFUL", /* successful completion */
|
"RTEMS_SUCCESSFUL", /* successful completion */
|
||||||
"RTEMS_TASK_EXITTED", /* returned from a task */
|
"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( "%s", rtems_fatal_source_description( source ) );
|
||||||
printk("Unknown Source (%d)", source);
|
|
||||||
else
|
|
||||||
printk( Sources[ source ] );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
/* functions */
|
/* functions */
|
||||||
void force_error(void);
|
void force_error(void);
|
||||||
|
|
||||||
void Put_Source(uint32_t source);
|
void Put_Source( rtems_fatal_source source );
|
||||||
|
|
||||||
void Put_Error(
|
void Put_Error(
|
||||||
uint32_t source,
|
uint32_t source,
|
||||||
|
|||||||
@@ -34,13 +34,6 @@ rtems_task Init(
|
|||||||
rtems_test_exit(0);
|
rtems_test_exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
char *Sources[] = {
|
|
||||||
"INTERNAL_ERROR_CORE",
|
|
||||||
"INTERNAL_ERROR_RTEMS_API",
|
|
||||||
"INTERNAL_ERROR_POSIX_API",
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
char *Errors_Rtems[] = {
|
char *Errors_Rtems[] = {
|
||||||
"RTEMS_SUCCESSFUL", /* successful completion */
|
"RTEMS_SUCCESSFUL", /* successful completion */
|
||||||
"RTEMS_TASK_EXITTED", /* returned from a task */
|
"RTEMS_TASK_EXITTED", /* returned from a task */
|
||||||
@@ -82,12 +75,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( "%s", rtems_fatal_source_description( source ) );
|
||||||
printk("Unknown Source (%d)", source);
|
|
||||||
else
|
|
||||||
printk( Sources[ source ] );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -35,9 +35,7 @@ void Put_Error(
|
|||||||
uint32_t error
|
uint32_t error
|
||||||
);
|
);
|
||||||
|
|
||||||
void Put_Source(
|
void Put_Source( rtems_fatal_source source );
|
||||||
uint32_t source
|
|
||||||
);
|
|
||||||
|
|
||||||
void force_error(void);
|
void force_error(void);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user