Changeset b288588 in rtems


Ignore:
Timestamp:
Nov 23, 2009, 2:58:30 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
dce4a317
Parents:
ea6eb431
Message:

2009-11-23 Joel Sherrill <joel.sherrill@…>

PR 1460/cpukit

  • sp43/init.c: Change return type on methods accessing portions of RTEMS Ids to int. This allows -1 to be return on error.
Location:
testsuites/sptests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    rea6eb431 rb288588  
     12009-11-23      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        PR 1460/cpukit
     4        * sp43/init.c: Change return type on methods accessing portions of
     5        RTEMS Ids to int. This allows -1 to be return on error.
     6
    172009-11-17      Ralf Corsépius <ralf.corsepius@rtems.org>
    28
  • testsuites/sptests/sp43/init.c

    rea6eb431 rb288588  
    1616#include "system.h"
    1717
    18 /* HACK: API violation */
    19 extern uint32_t rtems_object_api_minimum_class(uint32_t api);
    20 extern unsigned int rtems_object_api_maximum_class(uint32_t api);
    21 
    2218/* These functions have both macro and function incarnations */
    2319#undef rtems_build_id
    24 extern rtems_id rtems_build_id(uint32_t api,uint32_t class,uint32_t node,uint32_t index);
     20extern rtems_id rtems_build_id(int api,int class,int node,int index);
    2521#undef rtems_build_name
    2622extern rtems_name rtems_build_name(char C1,char C2,char C3,char C4);
    2723#undef rtems_object_id_api_maximum
    28 extern uint32_t rtems_object_id_api_maximum(void);
     24extern int rtems_object_id_api_maximum(void);
    2925#undef rtems_object_id_api_minimum
    30 extern uint32_t rtems_object_id_api_minimum(void);
     26extern int rtems_object_id_api_minimum(void);
    3127#undef rtems_object_id_get_api
    32 extern uint32_t rtems_object_id_get_api(rtems_id id);
     28extern int rtems_object_id_get_api(rtems_id id);
    3329#undef rtems_object_id_get_class
    34 extern uint32_t rtems_object_id_get_class(rtems_id id);
     30extern int rtems_object_id_get_class(rtems_id id);
    3531#undef rtems_object_id_get_index
    36 extern uint32_t rtems_object_id_get_index(rtems_id id);
     32extern int rtems_object_id_get_index(rtems_id id);
    3733#undef rtems_object_id_get_node
    38 extern uint32_t rtems_object_id_get_node(rtems_id id);
     34extern int rtems_object_id_get_node(rtems_id id);
    3935
    4036void print_class_info(
    41   uint32_t                            api,
    42   uint32_t                            class,
     37  int                                 api,
     38  int                                 class,
    4339  rtems_object_api_class_information *info
    4440);
     
    5450
    5551void print_class_info(
    56   uint32_t                            api,
    57   uint32_t                            class,
     52  int                                 api,
     53  int                                 class,
    5854  rtems_object_api_class_information *info
    5955)
     
    124120  const char                          newName[5] = "New1";
    125121  char                                tmpNameString[5];
    126   uint32_t                            part;
     122  int                                 part;
    127123  rtems_object_api_class_information  info;
    128124
     
    299295  rtems_test_pause();
    300296
    301   printf( "rtems_object_id_api_minimum returned %" PRId32 "\n",
     297  printf( "rtems_object_id_api_minimum returned %d\n",
    302298          rtems_object_id_api_minimum() );
    303   printf( "rtems_object_id_api_maximum returned %" PRId32 "\n",
     299  printf( "rtems_object_id_api_maximum returned %d\n",
    304300          rtems_object_id_api_maximum() );
    305301
    306   printf( "rtems_object_api_minimum_class(0) returned %" PRId32 "\n",
     302  printf( "rtems_object_api_minimum_class(0) returned %d\n",
    307303          rtems_object_api_minimum_class(0) );
    308304  printf( "rtems_object_api_maximum_class(0) returned %d\n",
    309305          rtems_object_api_maximum_class(0) );
    310306
    311   printf( "rtems_object_api_minimum_class(0) returned %" PRId32 "\n",
     307  printf( "rtems_object_api_minimum_class(0) returned %d\n",
    312308          rtems_object_api_minimum_class(0) );
    313309  printf( "rtems_object_api_maximum_class(0) returned %d\n",
    314310          rtems_object_api_maximum_class(0) );
    315   printf( "rtems_object_api_minimum_class(255) returned %" PRId32 "\n",
     311  printf( "rtems_object_api_minimum_class(255) returned %d\n",
    316312          rtems_object_api_minimum_class(255) );
    317313  printf( "rtems_object_api_maximum_class(255) returned %d\n",
    318314          rtems_object_api_maximum_class(255) );
    319315
    320   printf( "rtems_object_api_minimum_class(OBJECTS_INTERNAL_API) returned %" PRId32 "\n",
     316  printf( "rtems_object_api_minimum_class(OBJECTS_INTERNAL_API) returned %d\n",
    321317          rtems_object_api_minimum_class(OBJECTS_INTERNAL_API) );
    322318  printf( "rtems_object_api_maximum_class(OBJECTS_INTERNAL_API) returned %d\n",
    323319          rtems_object_api_maximum_class(OBJECTS_INTERNAL_API) );
    324320
    325   printf( "rtems_object_api_minimum_class(OBJECTS_CLASSIC_API) returned %" PRId32 "\n",
     321  printf( "rtems_object_api_minimum_class(OBJECTS_CLASSIC_API) returned %d\n",
    326322          rtems_object_api_minimum_class(OBJECTS_CLASSIC_API) );
    327323  printf( "rtems_object_api_maximum_class(OBJECTS_CLASSIC_API) returned %d\n",
    328324          rtems_object_api_maximum_class(OBJECTS_CLASSIC_API) );
    329325
    330   printf( "rtems_object_api_minimum_class(OBJECTS_ITRON_API) returned %" PRId32 "\n",
     326  printf( "rtems_object_api_minimum_class(OBJECTS_ITRON_API) returned %d\n",
    331327          rtems_object_api_minimum_class(OBJECTS_ITRON_API) );
    332328  printf( "rtems_object_api_maximum_class(OBJECTS_ITRON_API) returned %d\n",
Note: See TracChangeset for help on using the changeset viewer.