From fe9c604391f29f3a819ee0d9f3fbe418d22c8247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= Date: Fri, 20 Oct 2017 16:53:29 +0200 Subject: [PATCH] tests/posix_semaphore: test4: only one call to fmt_u64_dec --- tests/posix_semaphore/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/posix_semaphore/main.c b/tests/posix_semaphore/main.c index d4a1b8fcaf..a37752513c 100644 --- a/tests/posix_semaphore/main.c +++ b/tests/posix_semaphore/main.c @@ -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); } }