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 clang warnings about type mismatches. #309

Merged
merged 1 commit into from
Apr 7, 2021
Merged
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
4 changes: 2 additions & 2 deletions rclcpp/executors/cbg_executor/src/ping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ int main(int argc, char * argv[])
}

const std::chrono::seconds EXPERIMENT_DURATION = 10s;
RCLCPP_INFO(
logger, "Running experiment from now on for %" PRId64 "s ...", EXPERIMENT_DURATION.count());
RCLCPP_INFO_STREAM(
logger, "Running experiment from now on for " << EXPERIMENT_DURATION.count() << " seconds ...");
std::this_thread::sleep_for(EXPERIMENT_DURATION);

// ... and stop the experiment.
Expand Down
4 changes: 2 additions & 2 deletions rclcpp/executors/cbg_executor/src/ping_pong.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ int main(int argc, char * argv[])
nanoseconds low_prio_thread_begin = get_thread_time(low_prio_thread);

const std::chrono::seconds EXPERIMENT_DURATION = 10s;
RCLCPP_INFO(
logger, "Running experiment from now on for %" PRId64 "s ...", EXPERIMENT_DURATION.count());
RCLCPP_INFO_STREAM(
logger, "Running experiment from now on for " << EXPERIMENT_DURATION.count() << " seconds ...");
std::this_thread::sleep_for(EXPERIMENT_DURATION);

// Get end CPU time of each thread ...
Expand Down
4 changes: 2 additions & 2 deletions rclcpp/executors/cbg_executor/src/pong.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ int main(int argc, char * argv[])
nanoseconds low_prio_thread_begin = get_thread_time(low_prio_thread);

const std::chrono::seconds EXPERIMENT_DURATION = 10s;
RCLCPP_INFO(
logger, "Running experiment from now on for %" PRId64 "s ...", EXPERIMENT_DURATION.count());
RCLCPP_INFO_STREAM(
logger, "Running experiment from now on for " << EXPERIMENT_DURATION.count() << " seconds ...");
std::this_thread::sleep_for(EXPERIMENT_DURATION);

// Get end CPU time of each thread ...
Expand Down