{"id":2229792,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2229792/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20260428181434.179888-3-heinrich.schuchardt@canonical.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.1/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20260428181434.179888-3-heinrich.schuchardt@canonical.com>","date":"2026-04-28T18:14:33","name":"[2/3] net: lwip/wget: don't print content size twice","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"a55ced2cabe35812b0818f00a4436ba7cb81be89","submitter":{"id":82181,"url":"http://patchwork.ozlabs.org/api/1.1/people/82181/?format=json","name":"Heinrich Schuchardt","email":"heinrich.schuchardt@canonical.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20260428181434.179888-3-heinrich.schuchardt@canonical.com/mbox/","series":[{"id":501921,"url":"http://patchwork.ozlabs.org/api/1.1/series/501921/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=501921","date":"2026-04-28T18:14:31","name":"net: lwip/wget: correct diagnostic output","version":1,"mbox":"http://patchwork.ozlabs.org/series/501921/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2229792/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2229792/checks/","tags":{},"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=ER6DjZCE;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=canonical.com","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.b=\"ER6DjZCE\";\n\tdkim-atps=neutral","phobos.denx.de; dmarc=pass (p=reject dis=none)\n header.from=canonical.com","phobos.denx.de; spf=pass\n smtp.mailfrom=heinrich.schuchardt@canonical.com"],"Received":["from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g4pW92CwGz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 04:15:01 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id B7186846AE;\n\tTue, 28 Apr 2026 20:14:55 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id E691E846AF; Tue, 28 Apr 2026 20:14:52 +0200 (CEST)","from smtp-relay-internal-0.canonical.com\n (smtp-relay-internal-0.canonical.com [185.125.188.122])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 69AE3846AD\n for <u-boot@lists.denx.de>; Tue, 28 Apr 2026 20:14:50 +0200 (CEST)","from mail-wm1-f71.google.com (mail-wm1-f71.google.com\n [209.85.128.71])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 2C7A43F7D9\n for <u-boot@lists.denx.de>; Tue, 28 Apr 2026 18:14:50 +0000 (UTC)","by mail-wm1-f71.google.com with SMTP id\n 5b1f17b1804b1-48a548b585cso53855525e9.2\n for <u-boot@lists.denx.de>; Tue, 28 Apr 2026 11:14:50 -0700 (PDT)","from workstation5 (ip-176-199-115-125.um44.pools.vodafone-ip.de.\n [176.199.115.125]) by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-4463d02f35csm9551802f8f.11.2026.04.28.11.14.48\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 28 Apr 2026 11:14:48 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n s=20251003; t=1777400090;\n bh=4Lubqg1frltC9wcHVPNcHfE6IrBm+RcA5LF6N4hFuXo=;\n h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n MIME-Version;\n b=ER6DjZCEOEEgDchGqbTCOQYU1BJnxJffWg9/Ti/JbMtQHsgVBgCCiyqdUoHF3SqDq\n eDOVV6Ntm9yMb0v6HOAxrdXdzYbCJYw+MeC1demey+qCdn/ghNjHiOMLy7NwPgNlY3\n 71w87d5OnoUzeW+P1r0dpSZvJmHOHg2civp9qS7C70pjfIqgu5JxE0YZNO3GJ1g8wR\n HuHy0Oeu4Y6YYi+j9TNp60NFWn+hWgmOV+opvaySlaWxyl0wzEnM7yUZ+lD7N7yvem\n fH1KBBJ1DbFIALa/LnrC6aKAwQF+wE3teYjbYsQpBLOY4BLGYTg62Wm3dCmX8fopHm\n wa4Uttv+bFZFy2N/0EPTlDhiTdAEOoZKdhixe0f4ZGRot/wohILcef7PHGy45CVRRc\n W+twkGwAEXxnqvWzu+3Bbs3Y4xADa/xte+Li5bdIe09hvrnCwq7MLmNUtk01p1/OpQ\n DgBXCDNQ+pGYXM03BQZ/OvRTjhzSudzAl8JkAd32HQ6lGsH1jEWbpcuHn/wQ796Q4u\n 81LLAXl9oMacvIK7xssSJWwJx3Scet4qsHTW3/DS6rZUX8QcmeJE1pgjO3pq7jYS3W\n sz2eD0KG4+zWD8h/qV6bHa5cnkZUQ5PmUN4JcAJ034T62ocAdDNCziaVhNa2oZx+6A\n TJNZl7hAQ63hA3xlekMWSpcs=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777400090; x=1778004890;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=4Lubqg1frltC9wcHVPNcHfE6IrBm+RcA5LF6N4hFuXo=;\n b=AA+vfS/fEFP4SaVbkmshI3/orJ7vIMSDc4ioMzQdFID0+m2FTm1k6cIg+6Zq+xSi9r\n z/UHkZe0Qb/kXznlkkIK7kOh/73hr9GXn/087lf2VysVCAsDX8zUIlG6Xb39kKFIPYgc\n WNkedHkeh2tKcoMXuLyX/rK1OthheekxKNCkXZOkK+4FU5J/QL/KCYh9ANxnAYl1B/bc\n +dcJfapHRWYvmw0Bc8aj053EYMr+BvqLtNgczxITZ0gcU06IyQKjAUTftJXLdlxSsXJP\n CbRnWnXS8CJJhI/xhpABccV+x2IjZQ289bUwleSY3Rdk+Hv7lEeET7OHKnrC39NdgphZ\n 4i/Q==","X-Forwarded-Encrypted":"i=1;\n AFNElJ97fI+YrrssBj5rF1DddH0VH2iwVrrjvPCu8A8IK5o5LbUO5na70t3S3wigO1IG5Sz+L8FvPyU=@lists.denx.de","X-Gm-Message-State":"AOJu0Yzlqa8hYS56iWSsbOWVjPNjGGedBrvTePDe7qU4m0db+On6kr+1\n L5+vBy/xfQU1k+2fD4qpcQT1jADldJfieVk90yTL4us+l77e+nuwsO9Gu1quWgklhCioymAme/3\n 90Pn152+cATWF/yPK1ywiWNgKv/D5sMYr0O8jaGX26gZyeOZz+3AXwsjE5XCRWie6dJ9onqI=","X-Gm-Gg":"AeBDietd7zK8i/2dgJn9kJ/nv1/ydQ9BgmVsifZ9aIAXZ6j8Idv/26WBd1l2JPA68UC\n YNZLCeYKxEofcLov/xKLRM4fT585H3y2KtQAMh9uY5p27YAQGLWU50zTCxS8DXxyJoE2i81EmS2\n CHwU5Dx65tG4FNEFWIyK6NbQIOU7Kioq42AXUmC7IS7ZM7Mb6dJnsUOJx2dC4P6SJrvOTuzsK1V\n z0bS3nB2BbHe5t+k4nZigr9wXrP1ei9qVsYDATA3VoFghbJivBVRAEp/e1ILrqpZT26dcQhDRrj\n s4aUJ8iimZzcSSNC8k/u+Wb39+TiFL6heU5a8kcatpfcynNIYZf0I0MZR+iT0/iAhePNPbhBPaX\n A0B43crwkZ0hNiexYziGM1zUw9r5mHaDoFjJS8G6kfwX1kVPSAa8bTN0NSB9vEinasgSaL4aFdp\n iT6BKK0WMbDG9DOqOot2aKc6s10DedS+Po16pTddyLw8HkpqaDVYPGRzFmYFuP","X-Received":["by 2002:a05:600c:820d:b0:488:ab26:8fe0 with SMTP id\n 5b1f17b1804b1-48a7b534664mr12475005e9.15.1777400089647;\n Tue, 28 Apr 2026 11:14:49 -0700 (PDT)","by 2002:a05:600c:820d:b0:488:ab26:8fe0 with SMTP id\n 5b1f17b1804b1-48a7b534664mr12474645e9.15.1777400089224;\n Tue, 28 Apr 2026 11:14:49 -0700 (PDT)"],"From":"Heinrich Schuchardt <heinrich.schuchardt@canonical.com>","To":"Jerome Forissier <jerome.forissier@arm.com>","Cc":"Tom Rini <trini@konsulko.com>, Sughosh Ganu <sughosh.ganu@arm.com>,\n Tim Harvey <tharvey@gateworks.com>,\n Marek Vasut <marek.vasut+renesas@mailbox.org>, u-boot@lists.denx.de,\n Heinrich Schuchardt <heinrich.schuchardt@canonical.com>","Subject":"[PATCH 2/3] net: lwip/wget: don't print content size twice","Date":"Tue, 28 Apr 2026 20:14:33 +0200","Message-ID":"<20260428181434.179888-3-heinrich.schuchardt@canonical.com>","X-Mailer":"git-send-email 2.53.0","In-Reply-To":"<20260428181434.179888-1-heinrich.schuchardt@canonical.com>","References":"<20260428181434.179888-1-heinrich.schuchardt@canonical.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"},"content":"If wget_info->silent is set, we should not print anything.\n\nIf wget_info->silent we print the received content size.\nPrinting the value of the Content-Length header is redundant\n\nFor chunked transfer no Content-Length header is sent.\nThe content length is returned as HTTPC_CONTENT_LEN_INVALID by the LwIP\nlibrary. In this case we were incorrectly printing '4 GiB'.\n\nSigned-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>\n---\n net/lwip/wget.c | 2 --\n 1 file changed, 2 deletions(-)","diff":"diff --git a/net/lwip/wget.c b/net/lwip/wget.c\nindex b6c25be6115..983abe2ccd3 100644\n--- a/net/lwip/wget.c\n+++ b/net/lwip/wget.c\n@@ -243,8 +243,6 @@ static void httpc_result_cb(void *arg, httpc_result_t httpc_result,\n \t\tputc('#');\n \t\tctx->hash_count++;\n \t}\n-\tputs(\"  \");\n-\tprint_size(ctx->content_len, \"\");\n \n \telapsed = get_timer(ctx->start_time);\n \tif (!elapsed)\n","prefixes":["2/3"]}