
31 May
2018
31 May
'18
3:01 p.m.
On 30 May 2018 at 14:10, Ramon Fried ramon.fried@gmail.com wrote:
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
Changes in v4: None Changes in v3:
- fixed wrong usage of WARN_ONCE
Changes in v2:
- introduced needed_size to notify the user about the needed buffer size.
Changes in v1: None
cmd/iotrace.c | 11 ++++++----- common/iotrace.c | 13 +++++++++++-- include/iotrace.h | 5 +++-- 3 files changed, 20 insertions(+), 9 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org