This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 705b87e7a logging/nxscope/nxscope_chan.c: fix printf warnings
705b87e7a is described below
commit 705b87e7a2764288817f2eb12529ca789b80cd8b
Author: raiden00pl <[email protected]>
AuthorDate: Mon Feb 6 12:46:34 2023 +0100
logging/nxscope/nxscope_chan.c: fix printf warnings
---
logging/nxscope/nxscope_chan.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/logging/nxscope/nxscope_chan.c b/logging/nxscope/nxscope_chan.c
index ea2e74fcc..ca730b37c 100644
--- a/logging/nxscope/nxscope_chan.c
+++ b/logging/nxscope/nxscope_chan.c
@@ -210,7 +210,8 @@ static int nxscope_ch_validate(FAR struct nxscope_s *s,
uint8_t ch,
if (s->cribuf_len < next_i)
{
- _err("ERROR: no space in cribuf %d < %d\n", s->cribuf_len, next_i);
+ _err("ERROR: no space in cribuf %zu < %zu\n", s->cribuf_len,
+ next_i);
ret = -ENOBUFS;
goto errout;
}
@@ -230,7 +231,7 @@ static int nxscope_ch_validate(FAR struct nxscope_s *s,
uint8_t ch,
if (next_i > s->streambuf_len)
{
- _err("ERROR: no space for data %d\n", s->stream_i);
+ _err("ERROR: no space for data %zu\n", s->stream_i);
nxscope_stream_overflow(s);
ret = -ENOBUFS;
goto errout;