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

Fix logging for updated rclcpp interface #303

Merged
merged 4 commits into from
Dec 22, 2020
Merged

Fix logging for updated rclcpp interface #303

merged 4 commits into from
Dec 22, 2020

Conversation

mjcarroll
Copy link
Member

@mjcarroll mjcarroll commented Dec 21, 2020

This has caused failures in the nightly jobs on platforms where ros1_bridge is built.

I believe that it is related to this PR: ros2/rclcpp#1442

@audrow Can you confirm that this was an expected side effect?

Signed-off-by: Michael Carroll <michael@openrobotics.org>
src/bridge.cpp Outdated Show resolved Hide resolved
Signed-off-by: Michael Carroll <michael@openrobotics.org>

Co-authored-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
src/bridge.cpp Outdated Show resolved Hide resolved
Copy link
Member

@audrow audrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Clang will raise a warning with the change that's been made. I've suggested two alternatives.

src/bridge.cpp Outdated Show resolved Hide resolved
@audrow
Copy link
Member

audrow commented Dec 21, 2020

Also, this is an expected side effect. After ros2/rclcpp#1442, the logging macros only accept char *s and the format argument should be a string literal.

Signed-off-by: Michael Carroll <michael@openrobotics.org>
Copy link
Member

@audrow audrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with green CI!

@mjcarroll
Copy link
Member Author

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Signed-off-by: Michael Carroll <michael@openrobotics.org>
@mjcarroll
Copy link
Member Author

mjcarroll commented Dec 22, 2020

This actually requires the ci_packaging job, since it's ros1_bridge:

Build Status

@mjcarroll mjcarroll merged commit 08cf32c into master Dec 22, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix_log_update branch December 22, 2020 16:07
paulbovbel pushed a commit to locusrobotics/ros1_bridge that referenced this pull request Apr 5, 2023
* Fix logging for updated rclcpp interface

Signed-off-by: Michael Carroll <michael@openrobotics.org>

* Update src/bridge.cpp

Signed-off-by: Michael Carroll <michael@openrobotics.org>

Co-authored-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>

* Update to pass char *

Signed-off-by: Michael Carroll <michael@openrobotics.org>

* Uncrustify

Signed-off-by: Michael Carroll <michael@openrobotics.org>

Co-authored-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants