Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add line feed for RCUTILS_SAFE_FWRITE_TO_STDERR #608

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion rmw_fastrtps_cpp/src/rmw_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ rmw_create_node(
if (RMW_RET_OK != rmw_fastrtps_shared_cpp::decrement_context_impl_ref_count(context)) {
RCUTILS_SAFE_FWRITE_TO_STDERR(
"'decrement_context_impl_ref_count' failed while being executed due to '"
RCUTILS_STRINGIFY(__function__) "' failing");
RCUTILS_STRINGIFY(__function__) "' failing.\n");
}
}
return node;
Expand Down
2 changes: 1 addition & 1 deletion rmw_fastrtps_dynamic_cpp/src/rmw_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ rmw_create_node(
if (RMW_RET_OK != rmw_fastrtps_shared_cpp::decrement_context_impl_ref_count(context)) {
RCUTILS_SAFE_FWRITE_TO_STDERR(
"'decrement_context_impl_ref_count' failed while being executed due to '"
RCUTILS_STRINGIFY(__function__) "' failing");
RCUTILS_STRINGIFY(__function__) "' failing.\n");
}
}
return node;
Expand Down
2 changes: 1 addition & 1 deletion rmw_fastrtps_shared_cpp/src/listener_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ rmw_fastrtps_shared_cpp::run_listener_thread(rmw_context_t * context)
{
RCUTILS_SAFE_FWRITE_TO_STDERR(
RCUTILS_STRINGIFY(__FILE__) ":" RCUTILS_STRINGIFY(__function__) ":"
RCUTILS_STRINGIFY(__LINE__) ": Failed to destroy guard condition");
RCUTILS_STRINGIFY(__LINE__) ": Failed to destroy guard condition.\n");
}
}
return RMW_RET_ERROR;
Expand Down
6 changes: 3 additions & 3 deletions rmw_fastrtps_shared_cpp/src/participant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ rmw_fastrtps_shared_cpp::destroy_participant(CustomParticipantInfo * participant
}
ret = participant_info->participant_->delete_publisher(participant_info->publisher_);
if (ReturnCode_t::RETCODE_OK != ret) {
RCUTILS_SAFE_FWRITE_TO_STDERR("Failed to delete dds publisher from participant");
RCUTILS_SAFE_FWRITE_TO_STDERR("Failed to delete dds publisher from participant.\n");
}
}

Expand All @@ -330,7 +330,7 @@ rmw_fastrtps_shared_cpp::destroy_participant(CustomParticipantInfo * participant
}
ret = participant_info->participant_->delete_subscriber(participant_info->subscriber_);
if (ReturnCode_t::RETCODE_OK != ret) {
RCUTILS_SAFE_FWRITE_TO_STDERR("Failed to delete dds subscriber from participant");
RCUTILS_SAFE_FWRITE_TO_STDERR("Failed to delete dds subscriber from participant.\n");
}
}

Expand All @@ -346,7 +346,7 @@ rmw_fastrtps_shared_cpp::destroy_participant(CustomParticipantInfo * participant
participant_info->participant_);

if (ReturnCode_t::RETCODE_OK != ret) {
RCUTILS_SAFE_FWRITE_TO_STDERR("Failed to delete participant");
RCUTILS_SAFE_FWRITE_TO_STDERR("Failed to delete participant.\n");
}

// Delete Listener
Expand Down