Skip to content

Commit

Permalink
fix(autoware_trajectory_follower_node): fix clang-diagnostic-format-s…
Browse files Browse the repository at this point in the history
…ecurity (#9378)

Signed-off-by: veqcc <ryuta.kambe@tier4.jp>
  • Loading branch information
veqcc authored Nov 19, 2024
1 parent 8e06484 commit a1c3e6d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ bool Controller::processData(rclcpp::Clock & clock)
bool is_ready = true;

const auto & logData = [&clock, this](const std::string & data_type) {
std::string msg = "Waiting for " + data_type + " data";
RCLCPP_INFO_THROTTLE(get_logger(), clock, logger_throttle_interval, msg.c_str());
RCLCPP_INFO_THROTTLE(
get_logger(), clock, logger_throttle_interval, "Waiting for %s data", data_type.c_str());
};

const auto & getData = [&logData](auto & dest, auto & sub, const std::string & data_type = "") {
Expand Down

0 comments on commit a1c3e6d

Please sign in to comment.