This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 534a7ac9afc80e152527c327de1fe211d30fc0a7 Author: Marco Casaroli <[email protected]> AuthorDate: Sun Oct 18 13:44:15 2026 +0200 netutils/dhcp6c: Print the length of a received message with %zd. dhcp6c_command() printed the ssize_t result of recv() with %d. On a 64-bit target the build fails with -Werror=format. Use %zd. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- netutils/dhcp6c/dhcp6c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netutils/dhcp6c/dhcp6c.c b/netutils/dhcp6c/dhcp6c.c index dd89b931c..931d484b3 100644 --- a/netutils/dhcp6c/dhcp6c.c +++ b/netutils/dhcp6c/dhcp6c.c @@ -865,7 +865,7 @@ static int dhcp6c_command(FAR void *handle, enum dhcpv6_msg_e type) len = recv(pdhcp6c->sockfd, buf, buf_length, 0); if (type != DHCPV6_MSG_UNKNOWN) { - ninfo("%s[type:%d] recv len[%d]\n", __func__, type, len); + ninfo("%s[type:%d] recv len[%zd]\n", __func__, type, len); } if (!dhcp6c_response_is_valid(handle, buf, len, trid, type))
