mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-28 16:01:18 +01:00
tests/posix_semaphore: test4: only one call to fmt_u64_dec
This commit is contained in:
parent
14235b57ec
commit
fe9c604391
@ -261,16 +261,14 @@ void test4(void)
|
||||
}
|
||||
}
|
||||
stop = xtimer_now_usec64() - start;
|
||||
fmt_u64_dec(uint64_str, stop);
|
||||
if (stop < (exp - 100)) {
|
||||
fmt_u64_dec(uint64_str, stop);
|
||||
printf("first: waited only %s usec => FAILED\n", uint64_str);
|
||||
}
|
||||
else if (stop > (exp + 100)) {
|
||||
fmt_u64_dec(uint64_str, stop);
|
||||
printf("first: waited too long %s usec => FAILED\n", uint64_str);
|
||||
}
|
||||
else {
|
||||
fmt_u64_dec(uint64_str, stop);
|
||||
printf("first: waited %s usec\n", uint64_str);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user