mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
[ulog] fix HEX log size calculate error.
This commit is contained in:
1 parent
ed1bcfbd7e
commit
35c7dd6aba
1 file changed
+1
-1
@@ -823,7 +823,7 @@ void ulog_hexdump(const char *tag, rt_size_t width, const rt_uint8_t *buf, rt_si
|
||||
|
||||
for (i = 0; i < size; i += width, buf += width)
|
||||
{
|
||||
if (i + size < width)
|
||||
if (i + width > size)
|
||||
len = size - i;
|
||||
else
|
||||
len = width;
|
||||
|
||||
Reference in new issue
Block a user