net/bluetooth/bluetooth_sockif.c: Fix syslog formats
This commit is contained in:
parent
8e73a3ed4c
commit
d851cd9322
@ -401,8 +401,8 @@ static int bluetooth_bind(FAR struct socket *psock,
|
|||||||
FAR const struct sockaddr_l2 *iaddr;
|
FAR const struct sockaddr_l2 *iaddr;
|
||||||
if (addrlen < sizeof(struct sockaddr_l2))
|
if (addrlen < sizeof(struct sockaddr_l2))
|
||||||
{
|
{
|
||||||
nerr("ERROR: Invalid address length: %d < %d\n",
|
nerr("ERROR: Invalid address length: %zu < %zu\n",
|
||||||
addrlen, sizeof(struct sockaddr_l2));
|
(size_t)addrlen, sizeof(struct sockaddr_l2));
|
||||||
return -EBADF;
|
return -EBADF;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -415,8 +415,8 @@ static int bluetooth_bind(FAR struct socket *psock,
|
|||||||
FAR const struct sockaddr_hci *hciaddr;
|
FAR const struct sockaddr_hci *hciaddr;
|
||||||
if (addrlen < sizeof(struct sockaddr_hci))
|
if (addrlen < sizeof(struct sockaddr_hci))
|
||||||
{
|
{
|
||||||
nerr("ERROR: Invalid address length: %d < %d\n",
|
nerr("ERROR: Invalid address length: %zu < %zu\n",
|
||||||
addrlen, sizeof(struct sockaddr_hci));
|
(size_t)addrlen, sizeof(struct sockaddr_hci));
|
||||||
return -EBADF;
|
return -EBADF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user