Skip to content

Commit

Permalink
apps: rpc_demo: fix compilation warning
Browse files Browse the repository at this point in the history
The GCC compiler complains about the printf of a size_t variable.
add 'z' length modifier to fix the warning.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
  • Loading branch information
arnopo committed Dec 1, 2020
1 parent 39cbd87 commit baee3ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/examples/rpc_demo/rpc_demod.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ static int rpmsg_endpoint_cb(struct rpmsg_endpoint *ept, void *data, size_t len,
(void)src;

if (len < (int)sizeof(*syscall)) {
LPERROR("Received data is less than the rpc structure: %d\r\n",
LPERROR("Received data is less than the rpc structure: %zd\r\n",
len);
err_cnt++;
return RPMSG_SUCCESS;
Expand Down

0 comments on commit baee3ff

Please sign in to comment.