Skip to content

Commit

Permalink
corrected printf format for 'unsigned long'
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Staschulat <[email protected]>
  • Loading branch information
JanStaschulat committed Aug 13, 2021
1 parent 950f4ec commit 126a762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rclc/test/rclc/test_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1706,8 +1706,8 @@ 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) : %lld ns\n", TC_SPIN_PERIOD_MAX_INVOCATIONS, duration);
printf("expected 'spin_period' : %lu ns\n", spin_period);
printf("actual (%d iterations) : %lu 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 126a762

Please sign in to comment.