diff --git a/net/local/local_sockif.c b/net/local/local_sockif.c index 6e9c7facd7..577eb4191a 100644 --- a/net/local/local_sockif.c +++ b/net/local/local_sockif.c @@ -292,7 +292,7 @@ static int local_bind(FAR struct socket *psock, if (addr->sa_family != AF_LOCAL || addrlen < sizeof(sa_family_t)) { - nerr("ERROR: Invalid address length: %d < %d\n", + nerr("ERROR: Invalid address length: %d < %zu\n", addrlen, sizeof(sa_family_t)); return -EBADF; }