1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 06:53:52 +01:00

tests/ztimer_msg: Use %lu to print times

This commit is contained in:
Marian Buschsieweke 2020-04-23 21:18:48 +02:00
parent 1b44066dbd
commit 9f75501322
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -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,