Skip to content

Commit

Permalink
tests/thread_flags: fix printf on 16bit platform
Browse files Browse the repository at this point in the history
Diff output was truncated to a 16b unsigned on wsn430 which made tests fail

    main: timeout triggered. time passed: 34581us

Instead of

    main: timeout triggered. time passed: 100117us

(cherry picked from commit 8edd9a9)
  • Loading branch information
cladmi committed May 2, 2018
1 parent 55f7038 commit dc43896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/thread_flags/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ int main(void)
xtimer_set_timeout_flag(&t, TIMEOUT);
thread_flags_wait_any(THREAD_FLAG_TIMEOUT);
uint32_t diff = xtimer_now_usec() - before;
printf("main: timeout triggered. time passed: %uus\n", (unsigned)diff);
printf("main: timeout triggered. time passed: %"PRIu32"us\n", diff);

if (diff < (TIMEOUT + THRESHOLD)) {
puts("SUCCESS");
Expand Down

0 comments on commit dc43896

Please sign in to comment.