logging/nxscope/nxscope_chan.c: fix printf warnings
This commit is contained in:
parent
0f9642d403
commit
705b87e7a2
@ -210,7 +210,8 @@ static int nxscope_ch_validate(FAR struct nxscope_s *s, uint8_t ch,
|
|||||||
|
|
||||||
if (s->cribuf_len < next_i)
|
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;
|
ret = -ENOBUFS;
|
||||||
goto errout;
|
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)
|
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);
|
nxscope_stream_overflow(s);
|
||||||
ret = -ENOBUFS;
|
ret = -ENOBUFS;
|
||||||
goto errout;
|
goto errout;
|
||||||
|
Loading…
Reference in New Issue
Block a user