get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2234223,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2234223/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260507140624.v3.2.2405ba52fddd2e9ff1bbc24585e1e3140f660637@changeid/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/1.2/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,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260507140624.v3.2.2405ba52fddd2e9ff1bbc24585e1e3140f660637@changeid>",
    "list_archive_url": null,
    "date": "2026-05-07T12:06:23",
    "name": "[v3,2/4] mkimage: define log_err and log_info",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "f127f1b7692c57606790e0d5f3db08d4d113a870",
    "submitter": {
        "id": 90265,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/90265/?format=api",
        "name": "Ludwig Nussel",
        "email": "ludwig.nussel@siemens.com"
    },
    "delegate": {
        "id": 3651,
        "url": "http://patchwork.ozlabs.org/api/1.2/users/3651/?format=api",
        "username": "trini",
        "first_name": "Tom",
        "last_name": "Rini",
        "email": "trini@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260507140624.v3.2.2405ba52fddd2e9ff1bbc24585e1e3140f660637@changeid/mbox/",
    "series": [
        {
            "id": 503172,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/503172/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=503172",
            "date": "2026-05-07T12:06:22",
            "name": "Improve FIT signature handling",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/503172/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2234223/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2234223/checks/",
    "tags": {},
    "related": [],
    "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 secure) header.d=siemens.com header.i=ludwig.nussel@siemens.com\n header.a=rsa-sha256 header.s=fm1 header.b=D2v8KC+x;\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=siemens.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n secure) header.d=siemens.com header.i=ludwig.nussel@siemens.com\n header.b=\"D2v8KC+x\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=siemens.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=ludwig.nussel@siemens.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 4gB9xT6bGwz1yCg\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 07 May 2026 22:07:57 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 9DD6684A78;\n\tThu,  7 May 2026 14:07:47 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 9BF9484B07; Thu,  7 May 2026 14:07:46 +0200 (CEST)",
            "from mta-64-226.siemens.flowmailer.net\n (mta-64-226.siemens.flowmailer.net [185.136.64.226])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 9E6E184A72\n for <u-boot@lists.denx.de>; Thu,  7 May 2026 14:07:44 +0200 (CEST)",
            "by mta-64-226.siemens.flowmailer.net with ESMTPSA id\n 20260507120738fb58baa354000207ac for <u-boot@lists.denx.de>;\n Thu, 07 May 2026 14:07:38 +0200"
        ],
        "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_MED,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,\n SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1;\n d=siemens.com; i=ludwig.nussel@siemens.com;\n h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To;\n bh=B1ONDcQZc0EmhAKCrcqlizdExyEoD8WrK2NKFQZnvfg=;\n b=D2v8KC+xB5elP/Rin58tFmVqNw3KDhP1w8Y3ICA3Jk9HOiQPxRG9z1kvlHZRUuPFEZbOcT\n 1N/GNC/kYMBzMVy+D6IG3Tbu7bDsOvymSPxmwcpajoF9cR/aATvUGIKuP+yL2naINiqHofBA\n eWD3gxqHMD1FmzVD/08r/aU266SpRa4ENub49lLShTVGIHJiRsf+UOgR8faTyFHRZ5PkD2dk\n +efdy7GYj0NBb1KpvO6MUgjvKLu4iXKm2jUfKzpuA92vraGZPEXNq1294HIa3k2Vkb3DjRz3\n rqhO0qUUslBIgtwu5PDCsVMbgqqqQPBtfjme0OhceikBNp7I3N6wxkcw==;",
        "From": "Ludwig Nussel <ludwig.nussel@siemens.com>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Ludwig Nussel <ludwig.nussel@siemens.com>, Simon Glass <sjg@chromium.org>,\n Tom Rini <trini@konsulko.com>",
        "Subject": "[PATCH v3 2/4] mkimage: define log_err and log_info",
        "Date": "Thu,  7 May 2026 14:06:23 +0200",
        "Message-ID": "\n <20260507140624.v3.2.2405ba52fddd2e9ff1bbc24585e1e3140f660637@changeid>",
        "In-Reply-To": "<20260507120735.310325-1-ludwig.nussel@siemens.com>",
        "References": "<20260507120735.310325-1-ludwig.nussel@siemens.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Flowmailer-Platform": "Siemens",
        "Feedback-ID": "519:519-1328817:519-21489:flowmailer",
        "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": "Define log_err and log_info centrally in mkimage.h so any file used in\nthis context benefits from it.\n\nThis patch is in preparation for a change in image-fit-sig.c in the\nnext patch.\n\nSigned-off-by: Ludwig Nussel <ludwig.nussel@siemens.com>\n\n---\n\nChanges in v3:\n- make log_err use stdout too\n\n boot/image-pre-load.c | 3 ---\n tools/mkimage.h       | 5 +++++\n 2 files changed, 5 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/boot/image-pre-load.c b/boot/image-pre-load.c\nindex 2f851ebb28c..cd319ddb777 100644\n--- a/boot/image-pre-load.c\n+++ b/boot/image-pre-load.c\n@@ -35,9 +35,6 @@ ulong image_load_offset;\n  */\n static struct image_sig_info *host_info;\n \n-#define log_info(fmt, args...)\tprintf(fmt, ##args)\n-#define log_err(fmt, args...)\tprintf(fmt, ##args)\n-\n void image_pre_load_sig_set_info(struct image_sig_info *info)\n {\n \thost_info = info;\ndiff --git a/tools/mkimage.h b/tools/mkimage.h\nindex 5d6bcc9301a..caa51491f02 100644\n--- a/tools/mkimage.h\n+++ b/tools/mkimage.h\n@@ -31,6 +31,11 @@\n #endif /* MKIMAGE_DEBUG */\n \n #define log_debug(fmt, args...)\tdebug(fmt, ##args)\n+#define log_info(fmt, args...)\tprintf(fmt, ##args)\n+/* can't use stderr here as that's unbuffered and would produce\n+ * output different from u-boot's console\n+ */\n+#define log_err(fmt, args...)\tprintf(fmt, ##args)\n \n static inline void *map_sysmem(ulong paddr, unsigned long len)\n {\n",
    "prefixes": [
        "v3",
        "2/4"
    ]
}