diff options
Diffstat (limited to 'cpukit/score/src/objectidtoname.c')
-rw-r--r-- | cpukit/score/src/objectidtoname.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/score/src/objectidtoname.c b/cpukit/score/src/objectidtoname.c index de34dc5fa1..7504d3dc3c 100644 --- a/cpukit/score/src/objectidtoname.c +++ b/cpukit/score/src/objectidtoname.c @@ -66,8 +66,10 @@ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( if ( !information ) return OBJECTS_INVALID_ID; - if ( information->is_string ) - return OBJECTS_INVALID_ID; + #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) + if ( information->is_string ) + return OBJECTS_INVALID_ID; + #endif the_object = _Objects_Get( information, tmpId, &ignored_location ); if ( !the_object ) |