@@ -35,20 +35,20 @@ rmw_create_client(
3535{
3636 rmw_client_t * rmw_client = NULL ;
3737 if (!node ) {
38- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_CREATION , "node handle is null" , 0 );
38+ RMW_UROS_TRACE_MESSAGE ( "node handle is null" )
3939 } else if (!type_support ) {
40- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_CREATION , "type support is null" , 0 );
40+ RMW_UROS_TRACE_MESSAGE ( "type support is null" )
4141 } else if (!is_uxrce_rmw_identifier_valid (node -> implementation_identifier )) {
42- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_CREATION , "node handle not from this implementation" , 0 );
42+ RMW_UROS_TRACE_MESSAGE ( "node handle not from this implementation" )
4343 } else if (!service_name || strlen (service_name ) == 0 ) {
44- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_CREATION , "service name is null or empty string" , 0 );
44+ RMW_UROS_TRACE_MESSAGE ( "service name is null or empty string" )
4545 } else if (!qos_policies ) {
46- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_CREATION , "qos_profile is null" , 0 );
46+ RMW_UROS_TRACE_MESSAGE ( "qos_profile is null" )
4747 } else {
4848 rmw_uxrce_node_t * custom_node = (rmw_uxrce_node_t * )node -> data ;
4949 rmw_uxrce_mempool_item_t * memory_node = get_memory (& client_memory );
5050 if (!memory_node ) {
51- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_CREATION , "Not available memory node" , 0 );
51+ RMW_UROS_TRACE_MESSAGE ( "Not available memory node" )
5252 return NULL ;
5353 }
5454 rmw_uxrce_client_t * custom_client = (rmw_uxrce_client_t * )memory_node -> data ;
@@ -58,7 +58,7 @@ rmw_create_client(
5858 rmw_client -> implementation_identifier = rmw_get_implementation_identifier ();
5959 rmw_client -> service_name = custom_client -> service_name ;
6060 if ((strlen (service_name ) + 1 ) > sizeof (custom_client -> service_name )) {
61- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_CREATION , "failed to allocate string" , 0 );
61+ RMW_UROS_TRACE_MESSAGE ( "failed to allocate string" )
6262 goto fail ;
6363 }
6464
@@ -80,15 +80,15 @@ rmw_create_client(
8080 }
8181#endif /* ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_CPP__IDENTIFIER_VALUE */
8282 if (NULL == type_support_xrce ) {
83- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_CREATION , "Undefined type support" , 0 );
83+ RMW_UROS_TRACE_MESSAGE ( "Undefined type support" )
8484 goto fail ;
8585 }
8686
8787 custom_client -> type_support_callbacks =
8888 (const service_type_support_callbacks_t * )type_support_xrce -> data ;
8989
9090 if (custom_client -> type_support_callbacks == NULL ) {
91- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_CREATION , "type support data is NULL" , 0 );
91+ RMW_UROS_TRACE_MESSAGE ( "type support data is NULL" )
9292 goto fail ;
9393 }
9494
@@ -109,7 +109,7 @@ rmw_create_client(
109109 custom_client -> type_support_callbacks , qos_policies , rmw_uxrce_entity_naming_buffer ,
110110 sizeof (rmw_uxrce_entity_naming_buffer )))
111111 {
112- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_CREATION , "failed to generate xml request for client creation" , 0 );
112+ RMW_UROS_TRACE_MESSAGE ( "failed to generate xml request for client creation" )
113113 goto fail ;
114114 }
115115 client_req = uxr_buffer_create_requester_xml (
@@ -190,22 +190,22 @@ rmw_destroy_client(
190190{
191191 rmw_ret_t result_ret = RMW_RET_OK ;
192192 if (!node ) {
193- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_DESTRUCTION , "node handle is null" , 0 );
193+ RMW_UROS_TRACE_MESSAGE ( "node handle is null" )
194194 result_ret = RMW_RET_ERROR ;
195195 } else if (!is_uxrce_rmw_identifier_valid (node -> implementation_identifier )) {
196- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_DESTRUCTION , "node handle not from this implementation" , 0 );
196+ RMW_UROS_TRACE_MESSAGE ( "node handle not from this implementation" )
197197 result_ret = RMW_RET_ERROR ;
198198 } else if (!node -> data ) {
199- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_DESTRUCTION , "node imp is null" , 0 );
199+ RMW_UROS_TRACE_MESSAGE ( "node imp is null" )
200200 result_ret = RMW_RET_ERROR ;
201201 } else if (!client ) {
202- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_DESTRUCTION , "client handle is null" , 0 );
202+ RMW_UROS_TRACE_MESSAGE ( "client handle is null" )
203203 result_ret = RMW_RET_ERROR ;
204204 } else if (!is_uxrce_rmw_identifier_valid (client -> implementation_identifier )) {
205- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_DESTRUCTION , "client handle not from this implementation" , 0 );
205+ RMW_UROS_TRACE_MESSAGE ( "client handle not from this implementation" )
206206 result_ret = RMW_RET_ERROR ;
207207 } else if (!client -> data ) {
208- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_DESTRUCTION , "client imp is null" , 0 );
208+ RMW_UROS_TRACE_MESSAGE ( "client imp is null" )
209209 result_ret = RMW_RET_ERROR ;
210210 } else {
211211 rmw_uxrce_node_t * custom_node = (rmw_uxrce_node_t * )node -> data ;
0 commit comments