Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix string-format type mismatches #400

Open
wants to merge 1 commit into
base: humble
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions rclc/src/rclc/executor.c
Original file line number Diff line number Diff line change
Expand Up @@ -1833,7 +1833,7 @@ rclc_executor_spin_some(rclc_executor_t * executor, const uint64_t timeout_ns)
if (rc == RCL_RET_OK) {
RCUTILS_LOG_DEBUG_NAMED(
ROS_PACKAGE_NAME,
"Subscription added to wait_set_subscription[%ld]",
"Subscription added to wait_set_subscription[%u]",
executor->handles[i].index);
} else {
PRINT_RCLC_ERROR(rclc_executor_spin_some, rcl_wait_set_add_subscription);
Expand All @@ -1849,7 +1849,7 @@ rclc_executor_spin_some(rclc_executor_t * executor, const uint64_t timeout_ns)
&executor->handles[i].index);
if (rc == RCL_RET_OK) {
RCUTILS_LOG_DEBUG_NAMED(
ROS_PACKAGE_NAME, "Timer added to wait_set_timers[%ld]",
ROS_PACKAGE_NAME, "Timer added to wait_set_timers[%u]",
executor->handles[i].index);
} else {
PRINT_RCLC_ERROR(rclc_executor_spin_some, rcl_wait_set_add_timer);
Expand All @@ -1866,7 +1866,7 @@ rclc_executor_spin_some(rclc_executor_t * executor, const uint64_t timeout_ns)
&executor->handles[i].index);
if (rc == RCL_RET_OK) {
RCUTILS_LOG_DEBUG_NAMED(
ROS_PACKAGE_NAME, "Service added to wait_set_service[%ld]",
ROS_PACKAGE_NAME, "Service added to wait_set_service[%u]",
executor->handles[i].index);
} else {
PRINT_RCLC_ERROR(rclc_executor_spin_some, rcl_wait_set_add_service);
Expand All @@ -1884,7 +1884,7 @@ rclc_executor_spin_some(rclc_executor_t * executor, const uint64_t timeout_ns)
&executor->handles[i].index);
if (rc == RCL_RET_OK) {
RCUTILS_LOG_DEBUG_NAMED(
ROS_PACKAGE_NAME, "Client added to wait_set_client[%ld]",
ROS_PACKAGE_NAME, "Client added to wait_set_client[%u]",
executor->handles[i].index);
} else {
PRINT_RCLC_ERROR(rclc_executor_spin_some, rcl_wait_set_add_client);
Expand All @@ -1900,7 +1900,7 @@ rclc_executor_spin_some(rclc_executor_t * executor, const uint64_t timeout_ns)
&executor->handles[i].index);
if (rc == RCL_RET_OK) {
RCUTILS_LOG_DEBUG_NAMED(
ROS_PACKAGE_NAME, "Guard_condition added to wait_set_client[%ld]",
ROS_PACKAGE_NAME, "Guard_condition added to wait_set_client[%u]",
executor->handles[i].index);
} else {
PRINT_RCLC_ERROR(rclc_executor_spin_some, rcl_wait_set_add_guard_condition);
Expand All @@ -1916,7 +1916,7 @@ rclc_executor_spin_some(rclc_executor_t * executor, const uint64_t timeout_ns)
if (rc == RCL_RET_OK) {
RCUTILS_LOG_DEBUG_NAMED(
ROS_PACKAGE_NAME,
"Action client added to wait_set_action_clients[%ld]",
"Action client added to wait_set_action_clients[%u]",
executor->handles[i].index);
} else {
PRINT_RCLC_ERROR(rclc_executor_spin_some, rcl_wait_set_add_action_client);
Expand All @@ -1932,7 +1932,7 @@ rclc_executor_spin_some(rclc_executor_t * executor, const uint64_t timeout_ns)
if (rc == RCL_RET_OK) {
RCUTILS_LOG_DEBUG_NAMED(
ROS_PACKAGE_NAME,
"Action server added to wait_set_action_servers[%ld]",
"Action server added to wait_set_action_servers[%u]",
executor->handles[i].index);
} else {
PRINT_RCLC_ERROR(rclc_executor_spin_some, rcl_wait_set_add_action_server);
Expand Down Expand Up @@ -1977,7 +1977,7 @@ rclc_executor_spin(rclc_executor_t * executor)
rcl_ret_t ret = RCL_RET_OK;
RCUTILS_LOG_DEBUG_NAMED(
ROS_PACKAGE_NAME,
"INFO: rcl_wait timeout %ld ms",
"INFO: rcl_wait timeout %llu ms",
((executor->timeout_ns / 1000) / 1000));
while (true) {
ret = rclc_executor_spin_some(executor, executor->timeout_ns);
Expand Down
2 changes: 1 addition & 1 deletion rclc/src/rclc/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ rclc_timer_init_default(
if (rc != RCL_RET_OK) {
PRINT_RCLC_ERROR(rclc_timer_init_default, rcl_timer_init);
} else {
RCUTILS_LOG_INFO("Created a timer with period %ld ms.\n", timeout_ns / 1000000);
RCUTILS_LOG_INFO("Created a timer with period %lld ms.\n", timeout_ns / 1000000);
}
return rc;
}