Changeset 565d8da in rtems


Ignore:
Timestamp:
Jan 27, 2013, 12:05:13 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
33bd2efb
Parents:
967278f
git-author:
Sebastian Huber <sebastian.huber@…> (01/27/13 12:05:13)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/27/13 12:47:17)
Message:

testsuites: Use rtems_fatal_source_description()

Location:
testsuites
Files:
4 edited

Legend:

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

    r967278f r565d8da  
    3434  rtems_test_exit(0);
    3535}
    36 
    37 char *Sources[] = {
    38   "INTERNAL_ERROR_CORE",
    39   "INTERNAL_ERROR_RTEMS_API",
    40   "INTERNAL_ERROR_POSIX_API",
    41 };
    4236
    4337char *Errors_Rtems[] = {
     
    8579}
    8680
    87 void Put_Source( uint32_t source )
     81void Put_Source( rtems_fatal_source source )
    8882{
    89   if ( source > INTERNAL_ERROR_POSIX_API )
    90     printk("Unknown Source (%d)", source);
    91   else
    92     printk( Sources[ source ] );
     83  printk( "%s", rtems_fatal_source_description( source ) );
    9384}
    9485
  • testsuites/psxtests/psxfatal_support/system.h

    r967278f r565d8da  
    2525void force_error(void);
    2626
    27 void Put_Source(uint32_t source);
     27void Put_Source( rtems_fatal_source source );
    2828
    2929void Put_Error(
  • testsuites/sptests/spfatal_support/init.c

    r967278f r565d8da  
    3434  rtems_test_exit(0);
    3535}
    36 
    37 char *Sources[] = {
    38   "INTERNAL_ERROR_CORE",
    39   "INTERNAL_ERROR_RTEMS_API",
    40   "INTERNAL_ERROR_POSIX_API",
    41 };
    42 
    4336
    4437char *Errors_Rtems[] = {
     
    8376}
    8477
    85 void Put_Source( uint32_t source )
     78void Put_Source( rtems_fatal_source source )
    8679{
    87   if ( source > INTERNAL_ERROR_POSIX_API )
    88     printk("Unknown Source (%d)", source);
    89   else
    90     printk( Sources[ source ] );
     80  printk( "%s", rtems_fatal_source_description( source ) );
    9181}
    9282
  • testsuites/sptests/spfatal_support/system.h

    r967278f r565d8da  
    3636);
    3737
    38 void Put_Source(
    39   uint32_t source
    40 );
     38void Put_Source( rtems_fatal_source source );
    4139
    4240void force_error(void);
Note: See TracChangeset for help on using the changeset viewer.