This is an automated email from the ASF dual-hosted git repository.

archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 4211ce3212b drivers/rpmsg: update format string
4211ce3212b is described below

commit 4211ce3212b9a80a08db223e268714d333d6f4d7
Author: wangjianyu3 <wangjian...@xiaomi.com>
AuthorDate: Wed Jan 22 20:48:30 2025 +0800

    drivers/rpmsg: update format string
    
    The `file_write()` may return negative `errno`.
    
    Signed-off-by: wangjianyu3 <wangjian...@xiaomi.com>
---
 drivers/rpmsg/rpmsg_port_uart.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/rpmsg/rpmsg_port_uart.c b/drivers/rpmsg/rpmsg_port_uart.c
index 76677e988eb..62cc2414244 100644
--- a/drivers/rpmsg/rpmsg_port_uart.c
+++ b/drivers/rpmsg/rpmsg_port_uart.c
@@ -216,7 +216,7 @@ rpmsg_port_uart_send_connect_req(FAR struct 
rpmsg_port_uart_s *rpuart)
   ssize_t ret = file_write(&rpuart->file, &ch, 1);
   if (ret != 1)
     {
-      rpmsgerr("Send connect request failed, ret=%zu\n", ret);
+      rpmsgerr("Send connect request failed, ret=%zd\n", ret);
       PANIC();
     }
 }
@@ -232,7 +232,7 @@ rpmsg_port_uart_send_connect_ack(FAR struct 
rpmsg_port_uart_s *rpuart)
   ssize_t ret = file_write(&rpuart->file, &ch, 1);
   if (ret != 1)
     {
-      rpmsgerr("Send connect ack failed, ret=%zu\n", ret);
+      rpmsgerr("Send connect ack failed, ret=%zd\n", ret);
       PANIC();
     }
 }

Reply via email to