[U-Boot] [PATCH v4 6/6] iotrace: fix behaviour when buffer is full

Simon Glass sjg at chromium.org
Thu May 31 13:01:21 UTC 2018


On 30 May 2018 at 14:10, Ramon Fried <ramon.fried at 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 at 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 at chromium.org>


More information about the U-Boot mailing list