Skip to content

Commit

Permalink
Controller templates correct print placeholder. (StoglRobotics#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
destogl authored Dec 6, 2022
1 parent 2d3721e commit 19573ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ controller_interface::CallbackReturn DummyClassName::on_configure(
if (params_.joints.size() != state_joints_.size()) {
RCLCPP_FATAL(
get_node()->get_logger(),
"Size of 'joints' (%d) and 'state_joints' (%d) parameters has to be the same!",
"Size of 'joints' (%zu) and 'state_joints' (%zu) parameters has to be the same!",
params_.joints.size(), state_joints_.size());
return CallbackReturn::FAILURE;
}
Expand Down
2 changes: 1 addition & 1 deletion templates/ros2_control/controller/dummy_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ controller_interface::CallbackReturn DummyClassName::on_configure(
if (params_.joints.size() != state_joints_.size()) {
RCLCPP_FATAL(
get_node()->get_logger(),
"Size of 'joints' (%d) and 'state_joints' (%d) parameters has to be the same!",
"Size of 'joints' (%zu) and 'state_joints' (%zu) parameters has to be the same!",
params_.joints.size(), state_joints_.size());
return CallbackReturn::FAILURE;
}
Expand Down

0 comments on commit 19573ff

Please sign in to comment.