diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-04-06 16:00:35 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-04-07 06:31:46 +0200 |
commit | 089e68181e70aa96802f8ebe0acf6af73c02f5ae (patch) | |
tree | ad9615c3af96458cea8d9c1b19645b1724bc9cb5 /cpukit/score/src/objectidtoname.c | |
parent | score: Fix internal error status number (diff) | |
download | rtems-089e68181e70aa96802f8ebe0acf6af73c02f5ae.tar.bz2 |
score: Replace Objects_Name_or_id_lookup_errors
Replace Objects_Name_or_id_lookup_errors with new Status_Control codes.
Get rid of the _Status_Object_name_errors_to_status lookup table.
Diffstat (limited to 'cpukit/score/src/objectidtoname.c')
-rw-r--r-- | cpukit/score/src/objectidtoname.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/score/src/objectidtoname.c b/cpukit/score/src/objectidtoname.c index a959636870..f35f59f8d1 100644 --- a/cpukit/score/src/objectidtoname.c +++ b/cpukit/score/src/objectidtoname.c @@ -22,7 +22,7 @@ #include <rtems/score/threadimpl.h> -Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( +Status_Control _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) @@ -40,10 +40,10 @@ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( information = _Objects_Get_information_id( tmpId ); if ( !information ) - return OBJECTS_INVALID_ID; + return STATUS_INVALID_ID; if ( _Objects_Has_string_name( information ) ) - return OBJECTS_INVALID_ID; + return STATUS_INVALID_ID; the_object = _Objects_Get( tmpId, @@ -51,9 +51,9 @@ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( information ); if ( !the_object ) - return OBJECTS_INVALID_ID; + return STATUS_INVALID_ID; *name = the_object->name; _ISR_lock_ISR_enable( &lock_context ); - return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; + return STATUS_SUCCESSFUL; } |