]> git.baikalelectronics.ru Git - uboot.git/commit
iotrace: fix behaviour when buffer is full
authorRamon Fried <ramon.fried@gmail.com>
Fri, 8 Jun 2018 17:53:27 +0000 (20:53 +0300)
committerTom Rini <trini@konsulko.com>
Mon, 18 Jun 2018 18:02:04 +0000 (14:02 -0400)
commitff942a5a55aecb327b4034174ec9824602156437
treec149ff63395e448d8939f76ac3beb3ce43cec55e
parent74ebcfb6f7a8d8cb1252e20a7e598d8d9fe50b17
iotrace: fix behaviour when buffer is full

Don't continue updating the offset when buffer is full.
When the buffer size exhausts and there's no space left to write
warn the user and update only the needed size and not both the
offset and needed size.

Add needed buffer size information in the iotrace command.

Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
cmd/iotrace.c
common/iotrace.c
include/iotrace.h