diff --git a/arch/arm/src/stm32/stm32_hciuart.c b/arch/arm/src/stm32/stm32_hciuart.c index 2fc5982706..3da5ae2f78 100644 --- a/arch/arm/src/stm32/stm32_hciuart.c +++ b/arch/arm/src/stm32/stm32_hciuart.c @@ -25,6 +25,7 @@ #include #include +#include #include #include #include @@ -776,7 +777,7 @@ static void hciuart_enableints(const struct hciuart_config_s *config, cr2 |= (intset & USART_CR3_EIE); hciuart_putreg32(config, STM32_USART_CR3_OFFSET, cr2); - wlinfo("CR1 %08x CR2 %08x\n", cr1, cr2); + wlinfo("CR1 %08" PRIx32 " CR2 %08" PRIx32 "\n", cr1, cr2); } /**************************************************************************** @@ -808,7 +809,7 @@ static void hciuart_disableints(const struct hciuart_config_s *config, cr2 &= ~(intset & USART_CR3_EIE); hciuart_putreg32(config, STM32_USART_CR3_OFFSET, cr2); - wlinfo("CR1 %08x CR2 %08x\n", cr1, cr2); + wlinfo("CR1 %08" PRIx32 " CR2 %08" PRIx32 "\n", cr1, cr2); } /**************************************************************************** @@ -1725,7 +1726,7 @@ static int hciuart_interrupt(int irq, void *context, void *arg) /* Get the masked USART status word. */ status = hciuart_getreg32(config, STM32_USART_SR_OFFSET); - wlinfo("status %08x\n", status); + wlinfo("status %08" PRIx32 "\n", status); /* USART interrupts: * @@ -2317,7 +2318,7 @@ static ssize_t hciuart_rxdrain(const struct btuart_lowerhalf_s *lower) ssize_t nbytes; bool rxenable; - wlinfo("config %p\n"); + wlinfo("config %p\n", config); DEBUGASSERT(config != NULL && config->state != NULL); state = config->state;