From 016e946421f227d27d3677b6058570959ef1b462 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sat, 13 Mar 2021 10:12:20 +0100 Subject: [PATCH] btstack_run_loop: fix warning in dump timers --- src/btstack_run_loop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/btstack_run_loop.c b/src/btstack_run_loop.c index c5ce14b3f..54ce9be14 100644 --- a/src/btstack_run_loop.c +++ b/src/btstack_run_loop.c @@ -49,6 +49,8 @@ #include "btstack_config.h" #include "btstack_util.h" +#include + static const btstack_run_loop_t * the_run_loop = NULL; extern const btstack_run_loop_t btstack_run_loop_embedded; @@ -115,7 +117,7 @@ void btstack_run_loop_base_dump_timer(void){ uint16_t i = 0; for (it = (btstack_linked_item_t *) btstack_run_loop_base_timers; it ; it = it->next){ btstack_timer_source_t *ts = (btstack_timer_source_t*) it; - log_info("timer %u (%p): timeout %u\n", i, ts, ts->timeout); + log_info("timer %u (%p): timeout %" PRIu32 "u\n", i, ts, ts->timeout); } #endif