]> git.sur5r.net Git - u-boot/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)
commite0212dfa1353310ab903263f8c737b8fb40b4fff
treec149ff63395e448d8939f76ac3beb3ce43cec55e
parent501c89d33011e584b23e8e204e324512b4065948
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