From 9f75501322c81a55f2cd63d1011f7546dea00dab Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Thu, 23 Apr 2020 21:18:48 +0200 Subject: [PATCH] tests/ztimer_msg: Use %lu to print times --- tests/ztimer_msg/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ztimer_msg/main.c b/tests/ztimer_msg/main.c index b40422e9ed..39d490521f 100644 --- a/tests/ztimer_msg/main.c +++ b/tests/ztimer_msg/main.c @@ -69,7 +69,7 @@ void *timer_thread(void *arg) msg_receive(&m); struct timer_msg *tmsg = m.content.ptr; uint32_t now = ztimer_now(ZTIMER); - printf("now=%" PRIu32 ":%" PRIu32 " -> every %" PRIu32 ".%" PRIu32 "s: %s\n", + printf("now=%lu:%lu -> every %lu.%lus: %s\n", (now / TICKS_PER_SEC), (now % TICKS_PER_SEC), tmsg->interval / TICKS_PER_SEC,