Skip to content

Commit

Permalink
updated printf format string to %lld
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Staschulat <[email protected]>
  • Loading branch information
JanStaschulat committed Aug 12, 2021
1 parent 4a1d88e commit f76cce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclc/test/rclc/test_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1707,7 +1707,7 @@ TEST_F(TestDefaultExecutor, spin_period) {
// compute avarage time duration between calls to spin_period_callback
uint64_t duration = test_case_evaluate_spin_period();
printf("expected 'spin_period' : %ld ns\n", spin_period);
printf("actual (%d iterations) : %ld ns\n", TC_SPIN_PERIOD_MAX_INVOCATIONS, duration);
printf("actual (%d iterations) : %lld ns\n", TC_SPIN_PERIOD_MAX_INVOCATIONS, duration);

uint64_t delta = 5000000; // 5 ms interval
EXPECT_LE(duration, spin_period + delta);
Expand Down

0 comments on commit f76cce6

Please sign in to comment.