We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3644195 commit b432df1Copy full SHA for b432df1
rclcpp/src/rclcpp/node_interfaces/node_graph.cpp
@@ -419,7 +419,7 @@ NodeGraph::get_node_names_and_namespaces() const
419
rcl_get_error_string().str;
420
rcl_reset_error();
421
}
422
- RCUTILS_LOG_ERROR_NAMED("rclcpp", error_msg.c_str());
+ RCUTILS_LOG_ERROR_NAMED("rclcpp", "%s", error_msg.c_str());
423
throw std::runtime_error(error_msg);
424
425
@@ -442,7 +442,7 @@ NodeGraph::get_node_names_and_namespaces() const
442
443
444
if (ret_names != RCUTILS_RET_OK || ret_ns != RCUTILS_RET_OK) {
445
- RCUTILS_LOG_ERROR_NAMED("rclcpp", error.c_str());
+ RCUTILS_LOG_ERROR_NAMED("rclcpp", "%s", error.c_str());
446
throw std::runtime_error(error);
447
448
0 commit comments