mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
net: lwip/wget: don't print content size twice
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>
This commit is contained in:
committed by
Jerome Forissier
parent
4877a07ed3
commit
e093a4ecbe
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user