[PATCH 2/3] net: lwip/wget: don't print content size twice
Jerome Forissier
jerome.forissier at arm.com
Wed Apr 29 09:25:06 CEST 2026
On 28/04/2026 20:14, Heinrich Schuchardt wrote:
> If wget_info->silent is set, we should not print anything.
>
> If wget_info->silent we print the received content size.
> Printing the value of the Content-Length header is redundant
>
> For chunked transfer no Content-Length header is sent.
> The content length is returned as HTTPC_CONTENT_LEN_INVALID by the LwIP
> library. In this case we were incorrectly printing '4 GiB'.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
> net/lwip/wget.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/net/lwip/wget.c b/net/lwip/wget.c
> index b6c25be6115..983abe2ccd3 100644
> --- a/net/lwip/wget.c
> +++ b/net/lwip/wget.c
> @@ -243,8 +243,6 @@ static void httpc_result_cb(void *arg, httpc_result_t httpc_result,
> putc('#');
> ctx->hash_count++;
> }
> - puts(" ");
> - print_size(ctx->content_len, "");
>
> elapsed = get_timer(ctx->start_time);
> if (!elapsed)
Reviewed-by: Jerome Forissier <jerome.forissier at arm.com>
Thanks,
--
Jerome
More information about the U-Boot
mailing list