mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 13:18:50 +08:00
net/usrsock/usrsock_dev.c: Fix syslog formats
This commit is contained in:
parent
809f5efb1c
commit
dbe389a6bd
1 changed files with 5 additions and 2 deletions
|
@ -41,6 +41,7 @@
|
|||
#if defined(CONFIG_NET) && defined(CONFIG_NET_USRSOCK)
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <unistd.h>
|
||||
|
@ -689,7 +690,8 @@ usrsockdev_handle_datareq_response(FAR struct usrsockdev_s *dev,
|
|||
|
||||
if (conn->resp.datain.iov[iovpos].iov_len < hdr->result)
|
||||
{
|
||||
nwarn("%dth buffer not large enough (need: %d, have: %d).\n",
|
||||
nwarn("%dth buffer not large enough "
|
||||
"(need: %" PRId32 ", have: %d).\n",
|
||||
iovpos,
|
||||
hdr->result,
|
||||
conn->resp.datain.iov[iovpos].iov_len);
|
||||
|
@ -747,7 +749,8 @@ static ssize_t usrsockdev_handle_req_response(FAR struct usrsockdev_s *dev,
|
|||
break;
|
||||
|
||||
default:
|
||||
nwarn("unknown message type: %d, flags: %d, xid: %02x, result: %d\n",
|
||||
nwarn("unknown message type: %d, flags: %d, xid: %02x, "
|
||||
"result: %" PRId32 "\n",
|
||||
hdr->head.msgid, hdr->head.flags, hdr->xid, hdr->result);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue