Skip to content

Commit b432df1

Browse files
authored
Removed warning (#2949)
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
1 parent 3644195 commit b432df1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rclcpp/src/rclcpp/node_interfaces/node_graph.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ NodeGraph::get_node_names_and_namespaces() const
419419
rcl_get_error_string().str;
420420
rcl_reset_error();
421421
}
422-
RCUTILS_LOG_ERROR_NAMED("rclcpp", error_msg.c_str());
422+
RCUTILS_LOG_ERROR_NAMED("rclcpp", "%s", error_msg.c_str());
423423
throw std::runtime_error(error_msg);
424424
}
425425

@@ -442,7 +442,7 @@ NodeGraph::get_node_names_and_namespaces() const
442442
}
443443

444444
if (ret_names != RCUTILS_RET_OK || ret_ns != RCUTILS_RET_OK) {
445-
RCUTILS_LOG_ERROR_NAMED("rclcpp", error.c_str());
445+
RCUTILS_LOG_ERROR_NAMED("rclcpp", "%s", error.c_str());
446446
throw std::runtime_error(error);
447447
}
448448

0 commit comments

Comments
 (0)