Skip to content

Commit

Permalink
net/rpmsg: fix compile-time warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
eenurkka authored and xiaoxiang781216 committed Mar 25, 2022
1 parent 1caf7d6 commit b59dd92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/rpmsg/rpmsg_sockif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b59dd92

Please sign in to comment.