psxtests: Fix warnings

This commit is contained in:
Sebastian Huber
2017-02-15 10:35:07 +01:00
parent 468e9a4d99
commit 611f926212
2 changed files with 9 additions and 10 deletions
+8 -6
View File
@@ -39,19 +39,21 @@ void *POSIX_Init(
rtems_test_exit(0);
}
void Put_Error( uint32_t source, uint32_t error )
void Put_Error( rtems_fatal_source source, rtems_fatal_code error )
{
if ( source == INTERNAL_ERROR_CORE ) {
printk( rtems_internal_error_text( error ) );
}
else if (source == INTERNAL_ERROR_RTEMS_API ){
if (error > RTEMS_NOT_IMPLEMENTED )
printk("Unknown Internal Rtems Error (%d)", error);
else
printk( "%s", rtems_status_text( error ) );
printk( "%s", rtems_status_text( error ) );
}
else if (source == INTERNAL_ERROR_POSIX_API ) {
printk( "SOURCE=%d ERROR=%d %s", source, error, strerror( error ) );
printk(
"SOURCE=%d ERROR=%" PRIuMAX " %s",
source,
(uintmax_t) error,
strerror( (int) error )
);
}
}
@@ -25,10 +25,7 @@ void force_error(void);
void Put_Source( rtems_fatal_source source );
void Put_Error(
uint32_t source,
uint32_t error
);
void Put_Error( rtems_fatal_source source, rtems_fatal_code error );
void *POSIX_Init(
void *argument