This is an automated email from the ASF dual-hosted git repository. casaroli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 4e067b6e3bfbfe901c9f49aeab08cd88a294ba45 Author: Bowen Wang <[email protected]> AuthorDate: Fri Oct 30 04:23:26 2026 +0800 drivers/rpmsg/rpmsg_port_uart: print the event mask with %lx nxevent_mask_t is unsigned long, but the rpmsgdbg() calls print rpuart->event.events with %x. With CONFIG_RPMSG_PORT_UART_DEBUG enabled on a 64-bit target the build fails: rpmsg_port_uart.c:250:16: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'nxevent_mask_t' {aka 'long unsigned int'} [-Werror=format=] Use %lx, as the rpmsgvbs() calls in the same file already do. Signed-off-by: Bowen Wang <[email protected]> --- drivers/rpmsg/rpmsg_port_uart.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/rpmsg/rpmsg_port_uart.c b/drivers/rpmsg/rpmsg_port_uart.c index 4a0b0a28cba..d7e55e9a815 100644 --- a/drivers/rpmsg/rpmsg_port_uart.c +++ b/drivers/rpmsg/rpmsg_port_uart.c @@ -251,7 +251,7 @@ rpmsg_port_uart_staywake_times(FAR struct rpmsg_port_uart_s *rpuart, if (rpmsg_port_uart_check(rpuart, RPMSG_PORT_UART_EVT_WAKED)) { - rpmsgdbg("Peer is running, no need to wakeup 0x%x 0x%x\n", + rpmsgdbg("Peer is running, no need to wakeup 0x%x 0x%lx\n", rpuart->tx_staywake, rpuart->event.events); return 0; } @@ -268,7 +268,7 @@ rpmsg_port_uart_staywake_times(FAR struct rpmsg_port_uart_s *rpuart, return -EAGAIN; } - rpmsgdbg("Try to wakeup peer 0x%x 0x%x\n", + rpmsgdbg("Try to wakeup peer 0x%x 0x%lx\n", rpuart->tx_staywake, rpuart->event.events); rpmsg_port_uart_send_one(rpuart, rpuart->tx_staywake); if (rpmsg_port_uart_wait(rpuart, RPMSG_PORT_UART_EVT_WAKED, @@ -279,7 +279,7 @@ rpmsg_port_uart_staywake_times(FAR struct rpmsg_port_uart_s *rpuart, } rpmsg_port_uart_clear(rpuart, RPMSG_PORT_UART_EVT_WAKING); - rpmsgdbg("Wakeup peer success 0x%x 0x%x\n", + rpmsgdbg("Wakeup peer success 0x%x 0x%lx\n", rpuart->tx_staywake, rpuart->event.events); return 0; } @@ -292,7 +292,7 @@ static void rpmsg_port_uart_relaxwake(FAR struct rpmsg_port_uart_s *rpuart) { if (rpmsg_port_uart_check(rpuart, RPMSG_PORT_UART_EVT_WAKED)) { - rpmsgdbg("Try allow peer sleep 0x%x 0x%x\n", + rpmsgdbg("Try allow peer sleep 0x%x 0x%lx\n", rpuart->tx_staywake, rpuart->event.events); rpmsg_port_uart_send_one(rpuart, RPMSG_PORT_UART_RELAXWAKE); rpmsg_port_uart_clear(rpuart, RPMSG_PORT_UART_EVT_WAKED); @@ -618,7 +618,7 @@ rpmsg_port_uart_process_rx_cmd(FAR struct rpmsg_port_uart_s *rpuart, break; case RPMSG_PORT_UART_STAYWAKE1: count = pm_wakelock_staycount(&rpuart->rx_wakelock); - rpmsgdbg("Received staywake1 command %d 0x%x\n", + rpmsgdbg("Received staywake1 command %d 0x%lx\n", count, rpuart->event.events); if (count == 0) { @@ -629,7 +629,7 @@ rpmsg_port_uart_process_rx_cmd(FAR struct rpmsg_port_uart_s *rpuart, break; case RPMSG_PORT_UART_STAYWAKE2: count = pm_wakelock_staycount(&rpuart->rx_wakelock); - rpmsgdbg("Received staywake2 command %d 0x%x\n", + rpmsgdbg("Received staywake2 command %d 0x%lx\n", count, rpuart->event.events); if (count == 0) { @@ -640,7 +640,7 @@ rpmsg_port_uart_process_rx_cmd(FAR struct rpmsg_port_uart_s *rpuart, break; case RPMSG_PORT_UART_RELAXWAKE: count = pm_wakelock_staycount(&rpuart->rx_wakelock); - rpmsgdbg("Received relaxwake command %d 0x%x\n", + rpmsgdbg("Received relaxwake command %d 0x%lx\n", count, rpuart->event.events); if (count != 0) { @@ -649,7 +649,7 @@ rpmsg_port_uart_process_rx_cmd(FAR struct rpmsg_port_uart_s *rpuart, break; case RPMSG_PORT_UART_STAYWAKEACK1: case RPMSG_PORT_UART_STAYWAKEACK2: - rpmsgdbg("Received staywake ack command 0x%x 0x%x 0x%x\n", + rpmsgdbg("Received staywake ack command 0x%x 0x%x 0x%lx\n", ch, rpuart->tx_staywake, rpuart->event.events); if (ch == rpuart->tx_staywake - 1 && rpmsg_port_uart_check(rpuart, RPMSG_PORT_UART_EVT_WAKING))
