tests/posix_semaphore: test4: BUG add '\0' after fmt_u64_dec

fmt_u64_dec does not include the terminating null string character.
This commit is contained in:
Gaëtan Harter 2017-10-24 11:33:43 +02:00
parent fe9c604391
commit ffcdb61211

View File

@ -261,7 +261,7 @@ void test4(void)
}
}
stop = xtimer_now_usec64() - start;
fmt_u64_dec(uint64_str, stop);
uint64_str[fmt_u64_dec(uint64_str, stop)] = '\0';
if (stop < (exp - 100)) {
printf("first: waited only %s usec => FAILED\n", uint64_str);
}