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

Ramon Fried ramon.fried at gmail.com
Thu May 31 15:06:24 UTC 2018


Hi Tom.
The below patch is depened on this one:
https://patchwork.ozlabs.org/patch/922071/
Please wait with meging until the patch above is reviewed and mereged.

Thanks,
Ramon.

On Thu, May 31, 2018 at 4:01 PM, Simon Glass <sjg at chromium.org> wrote:
> 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