Changeset 611f9262 in rtems


Ignore:
Timestamp:
Feb 14, 2017, 10:30:00 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
7a462cc
Parents:
468e9a4
git-author:
Sebastian Huber <sebastian.huber@…> (02/14/17 10:30:00)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/15/17 09:35:07)
Message:

psxtests: Fix warnings

Location:
testsuites/psxtests/psxfatal_support
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psxfatal_support/init.c

    r468e9a4 r611f9262  
    4040}
    4141
    42 void Put_Error( uint32_t source, uint32_t error )
     42void Put_Error( rtems_fatal_source source, rtems_fatal_code error )
    4343{
    4444  if ( source == INTERNAL_ERROR_CORE ) {
     
    4646  }
    4747  else if (source == INTERNAL_ERROR_RTEMS_API ){
    48     if (error >  RTEMS_NOT_IMPLEMENTED )
    49       printk("Unknown Internal Rtems Error (%d)", error);
    50     else
    51       printk( "%s", rtems_status_text( error ) );
     48    printk( "%s", rtems_status_text( error ) );
    5249  }
    5350  else if (source == INTERNAL_ERROR_POSIX_API ) {
    54       printk( "SOURCE=%d ERROR=%d %s", source, error, strerror( error ) );
     51    printk(
     52      "SOURCE=%d ERROR=%" PRIuMAX " %s",
     53      source,
     54      (uintmax_t) error,
     55      strerror( (int) error )
     56    );
    5557  }
    5658}
  • testsuites/psxtests/psxfatal_support/system.h

    r468e9a4 r611f9262  
    2626void Put_Source( rtems_fatal_source source );
    2727
    28 void Put_Error(
    29   uint32_t source,
    30   uint32_t error
    31 );
     28void Put_Error( rtems_fatal_source source, rtems_fatal_code error );
    3229
    3330void *POSIX_Init(
Note: See TracChangeset for help on using the changeset viewer.