]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
net: lwip/wget: don't print content size twice
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 28 Apr 2026 18:14:33 +0000 (20:14 +0200)
committerJerome Forissier <jerome.forissier@arm.com>
Wed, 6 May 2026 09:07:22 +0000 (11:07 +0200)
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@canonical.com>
Reviewed-by: Jerome Forissier <jerome.forissier@arm.com>
net/lwip/wget.c

index b6c25be61152bea7e04dd77b81384d064e9a4c96..983abe2ccd321043a6197e40d194309c91e64eac 100644 (file)
@@ -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)