mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-18 05:42:49 +00:00
btstack_run_loop: fix warning in dump timers
This commit is contained in:
parent
f3a32fdcb9
commit
016e946421
@ -49,6 +49,8 @@
|
|||||||
#include "btstack_config.h"
|
#include "btstack_config.h"
|
||||||
#include "btstack_util.h"
|
#include "btstack_util.h"
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
static const btstack_run_loop_t * the_run_loop = NULL;
|
static const btstack_run_loop_t * the_run_loop = NULL;
|
||||||
|
|
||||||
extern const btstack_run_loop_t btstack_run_loop_embedded;
|
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;
|
uint16_t i = 0;
|
||||||
for (it = (btstack_linked_item_t *) btstack_run_loop_base_timers; it ; it = it->next){
|
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;
|
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
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user