Skip to content

Commit

Permalink
fix: bug of passing string to printf (#2490)
Browse files Browse the repository at this point in the history
  • Loading branch information
easylyou authored Aug 4, 2021
1 parent 45fbe46 commit a7955d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class TestPublisher : public rclcpp::Node
std::string pub_map_file = path(TEST_DIR) / path(g_valid_yaml_file);
LOAD_MAP_STATUS status = loadMapFromYaml(pub_map_file, msg_);
if (status != LOAD_MAP_SUCCESS) {
RCLCPP_ERROR(get_logger(), "Can not load %s map file", pub_map_file);
RCLCPP_ERROR(get_logger(), "Can not load %s map file", pub_map_file.c_str());
return;
}

Expand Down

0 comments on commit a7955d8

Please sign in to comment.