get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.1/patches/2229510/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2229510,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229510/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260428-ufetch-net-v1-2-5d58c7618239@cherry.de/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/18/?format=api",
        "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": "<20260428-ufetch-net-v1-2-5d58c7618239@cherry.de>",
    "date": "2026-04-28T10:56:05",
    "name": "[2/2] cmd: ufetch: only show comma separator if there was a previous feature",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "2d071d71a3b34a2d8aeef825ba098fab5c9e0bb4",
    "submitter": {
        "id": 84425,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/84425/?format=api",
        "name": "Quentin Schulz",
        "email": "foss+uboot@0leil.net"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260428-ufetch-net-v1-2-5d58c7618239@cherry.de/mbox/",
    "series": [
        {
            "id": 501823,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501823/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=501823",
            "date": "2026-04-28T10:56:03",
            "name": "cmd: ufetch: print Net feature when NET_LWIP=y, prettyfy if NET=n",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501823/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2229510/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2229510/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 (2048-bit key;\n unprotected) header.d=0leil.net header.i=@0leil.net header.a=rsa-sha256\n header.s=20231125 header.b=bgEX6yK3;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; 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=0leil.net",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=0leil.net header.i=@0leil.net header.b=\"bgEX6yK3\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=0leil.net",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=foss+uboot@0leil.net"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de [85.214.62.61])\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 4g4cnK08RTz1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 20:56:37 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id DA1A984693;\n\tTue, 28 Apr 2026 12:56:21 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id F18128467C; Tue, 28 Apr 2026 12:56:18 +0200 (CEST)",
            "from smtp-8fa8.mail.infomaniak.ch (smtp-8fa8.mail.infomaniak.ch\n [IPv6:2001:1600:4:17::8fa8])\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 563DD8467C\n for <u-boot@lists.denx.de>; Tue, 28 Apr 2026 12:56:16 +0200 (CEST)",
            "from smtp-3-0000.mail.infomaniak.ch (smtp-3-0000.mail.infomaniak.ch\n [10.4.36.107])\n by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4g4cmw0XJRz1gx;\n Tue, 28 Apr 2026 12:56:16 +0200 (CEST)",
            "from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA\n id 4g4cmv1gKFzmfJ; Tue, 28 Apr 2026 12:56:15 +0200 (CEST)"
        ],
        "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,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=0leil.net;\n s=20231125; t=1777373775;\n bh=nGKmvPFQo/I5oao6zu4PZ1OymaJhmI8qWyG/2sF9tfY=;\n h=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n b=bgEX6yK3uh3wT24ApQdjJM3GCgCy83Y0486DZ1KPesakZK2eiKFKwD0raO/aPv3Wu\n cb773Cs4Bps6axzk1kOr4qC6GWzqGiw9UB3HUjGIrgS+4fjw6c3qBc2jhoMXGNRLyB\n c1yUXfz5/dM8lG+zbCSor75EMqjYWNNfTFoBSfhx7fra1O9K9bxkZ1P8lwPXsp7qX6\n 14nw2QXF9x7vawmif3yiG1U72DDdjXEuj11JN/46qZiElxMsWkn37i77Bzts8LceNT\n UOtVQrJaf2HAQs3ZTQ/wvxGxEWAAr65x7rxjLulsE7QqUPoqkQ5YlpadgJOy/3LbVG\n XVwgBKWZvE27g==",
        "From": "Quentin Schulz <foss+uboot@0leil.net>",
        "Date": "Tue, 28 Apr 2026 12:56:05 +0200",
        "Subject": "[PATCH 2/2] cmd: ufetch: only show comma separator if there was a\n previous feature",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260428-ufetch-net-v1-2-5d58c7618239@cherry.de>",
        "References": "<20260428-ufetch-net-v1-0-5d58c7618239@cherry.de>",
        "In-Reply-To": "<20260428-ufetch-net-v1-0-5d58c7618239@cherry.de>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Casey Connolly <casey.connolly@linaro.org>,\n Tom Rini <trini@konsulko.com>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Andrew Goodbody <andrew.goodbody@linaro.org>,\n Peter Robinson <pbrobinson@gmail.com>,\n Heinrich Schuchardt <xypron.glpk@gmx.de>,\n Quentin Schulz <quentin.schulz@cherry.de>",
        "X-Mailer": "b4 0.15-dev-47773",
        "X-Infomaniak-Routing": "alpha",
        "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": "From: Quentin Schulz <quentin.schulz@cherry.de>\n\nCurrently, if NET is disabled, the next feature to be printed will start\nwith a comma and a space which is not pretty. Add the comma and\nwhitespace only when a previous feature has already been shown.\n\nSigned-off-by: Quentin Schulz <quentin.schulz@cherry.de>\n---\n cmd/ufetch.c | 29 ++++++++++++++++++++---------\n 1 file changed, 20 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/cmd/ufetch.c b/cmd/ufetch.c\nindex bc5db08eee1..5c0d09c07bf 100644\n--- a/cmd/ufetch.c\n+++ b/cmd/ufetch.c\n@@ -157,26 +157,37 @@ static int do_ufetch(struct cmd_tbl *cmdtp, int flag, int argc,\n \t\t\t\tprintf(\" (%d baud)\", gd->baudrate);\n \t\t\tputc('\\n');\n \t\t\tbreak;\n-\t\tcase FEATURES:\n+\t\tcase FEATURES: {\n+\t\t\tbool sep = false;\n+\n \t\t\tprintf(\"Features:\" RESET \" \");\n-\t\t\tif (IS_ENABLED(CONFIG_NET))\n-\t\t\t\tprintf(\"Net\");\n-\t\t\tif (IS_ENABLED(CONFIG_EFI_LOADER))\n-\t\t\t\tprintf(\", EFI\");\n-\t\t\tif (IS_ENABLED(CONFIG_CMD_CAT))\n-\t\t\t\tprintf(\", cat :3\");\n+\t\t\tif (IS_ENABLED(CONFIG_NET)) {\n+\t\t\t\tprintf(\"%sNet\", sep ? \", \" : \"\");\n+\t\t\t\tsep = true;\n+\t\t\t}\n+\t\t\tif (IS_ENABLED(CONFIG_EFI_LOADER)) {\n+\t\t\t\tprintf(\"%sEFI\", sep ? \", \" : \"\");\n+\t\t\t\tsep = true;\n+\t\t\t}\n+\t\t\tif (IS_ENABLED(CONFIG_CMD_CAT)) {\n+\t\t\t\tprintf(\":%scat :3\", sep ? \", \" : \"\");\n+\t\t\t\tsep = true;\n+\t\t\t}\n #ifdef CONFIG_ARM64\n \t\t\tswitch (current_el()) {\n \t\t\tcase 2:\n-\t\t\t\tprintf(\", VMs\");\n+\t\t\t\tprintf(\"%sVMs\", sep ? \", \" : \"\");\n+\t\t\t\tsep = true;\n \t\t\t\tbreak;\n \t\t\tcase 3:\n-\t\t\t\tprintf(\", full control!\");\n+\t\t\t\tprintf(\"%sfull control!\", sep ? \", \" : \"\");\n+\t\t\t\tsep = true;\n \t\t\t\tbreak;\n \t\t\t}\n #endif\n \t\t\tprintf(\"\\n\");\n \t\t\tbreak;\n+\t\t}\n \t\tcase RELOCATION:\n \t\t\tif (gd->flags & GD_FLG_SKIP_RELOC)\n \t\t\t\tprintf(\"Relocated:\" RESET \" no\\n\");\n",
    "prefixes": [
        "2/2"
    ]
}