@@ -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 (
@@ -189,22 +189,22 @@ rmw_destroy_client(
189189{
190190 rmw_ret_t result_ret = RMW_RET_OK ;
191191 if (!node ) {
192- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_DESTRUCTION , "node handle is null" , 0 );
192+ RMW_UROS_TRACE_MESSAGE ( "node handle is null" )
193193 result_ret = RMW_RET_ERROR ;
194194 } else if (!is_uxrce_rmw_identifier_valid (node -> implementation_identifier )) {
195- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_DESTRUCTION , "node handle not from this implementation" , 0 );
195+ RMW_UROS_TRACE_MESSAGE ( "node handle not from this implementation" )
196196 result_ret = RMW_RET_ERROR ;
197197 } else if (!node -> data ) {
198- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_DESTRUCTION , "node imp is null" , 0 );
198+ RMW_UROS_TRACE_MESSAGE ( "node imp is null" )
199199 result_ret = RMW_RET_ERROR ;
200200 } else if (!client ) {
201- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_DESTRUCTION , "client handle is null" , 0 );
201+ RMW_UROS_TRACE_MESSAGE ( "client handle is null" )
202202 result_ret = RMW_RET_ERROR ;
203203 } else if (!is_uxrce_rmw_identifier_valid (client -> implementation_identifier )) {
204- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_DESTRUCTION , "client handle not from this implementation" , 0 );
204+ RMW_UROS_TRACE_MESSAGE ( "client handle not from this implementation" )
205205 result_ret = RMW_RET_ERROR ;
206206 } else if (!client -> data ) {
207- RMW_UROS_TRACE_ERROR ( RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_ENTITY_DESTRUCTION , "client imp is null" , 0 );
207+ RMW_UROS_TRACE_MESSAGE ( "client imp is null" )
208208 result_ret = RMW_RET_ERROR ;
209209 } else {
210210 rmw_uxrce_node_t * custom_node = (rmw_uxrce_node_t * )node -> data ;
0 commit comments