From b59dd925287113f8884b00b06014eb3d43703ce4 Mon Sep 17 00:00:00 2001 From: Eero Nurkkala Date: Fri, 25 Mar 2022 12:55:45 +0200 Subject: [PATCH] net/rpmsg: fix compile-time warning Fix this compile-time warning: rpmsg/rpmsg_sockif.c:381:24: warning: format '%d' expects argument of type 'int', but argument 3 has type 'ssize_t' {aka 'long int'} [-Wformat=] 381 | nerr("circbuf_write overflow, %d, %d\n", written, len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ | | | ssize_t {aka long int} Signed-off-by: Eero Nurkkala --- net/rpmsg/rpmsg_sockif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/rpmsg/rpmsg_sockif.c b/net/rpmsg/rpmsg_sockif.c index b6bd3b9376..822fb74f37 100644 --- a/net/rpmsg/rpmsg_sockif.c +++ b/net/rpmsg/rpmsg_sockif.c @@ -376,7 +376,7 @@ static int rpmsg_socket_ept_cb(FAR struct rpmsg_endpoint *ept, written = circbuf_write(&conn->recvbuf, buf, len); if (written != len) { - nerr("circbuf_write overflow, %d, %d\n", written, len); + nerr("circbuf_write overflow, %zu, %zu\n", written, len); } rpmsg_socket_pollnotify(conn, POLLIN);