get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2218591,
    "url": "http://patchwork.ozlabs.org/api/patches/2218591/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260401-casey-ccf-compat-v2-1-414d5b7f040b@linaro.org/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/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": "<20260401-casey-ccf-compat-v2-1-414d5b7f040b@linaro.org>",
    "list_archive_url": null,
    "date": "2026-04-01T14:15:17",
    "name": "[v2,01/11] vsprintf: add %pOF",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "9b682c1b066c46c351c02c8092f2d8078aa5479c",
    "submitter": {
        "id": 90679,
        "url": "http://patchwork.ozlabs.org/api/people/90679/?format=api",
        "name": "Casey Connolly",
        "email": "casey.connolly@linaro.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260401-casey-ccf-compat-v2-1-414d5b7f040b@linaro.org/mbox/",
    "series": [
        {
            "id": 498341,
            "url": "http://patchwork.ozlabs.org/api/series/498341/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=498341",
            "date": "2026-04-01T14:15:17",
            "name": "Linux compat improvements and CCF prep",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/498341/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2218591/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218591/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 unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=ORlFZvP5;\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=none dis=none) header.from=linaro.org",
            "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=linaro.org header.i=@linaro.org header.b=\"ORlFZvP5\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=linaro.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=casey.connolly@linaro.org"
        ],
        "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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fm6TR0JL6z1yCp\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 02 Apr 2026 01:15:38 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id DC4FF83F7D;\n\tWed,  1 Apr 2026 16:15:29 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 3470084020; Wed,  1 Apr 2026 16:15:28 +0200 (CEST)",
            "from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com\n [IPv6:2a00:1450:4864:20::32f])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id CA2D383CF5\n for <u-boot@lists.denx.de>; Wed,  1 Apr 2026 16:15:25 +0200 (CEST)",
            "by mail-wm1-x32f.google.com with SMTP id\n 5b1f17b1804b1-48541edecf9so83257915e9.1\n for <u-boot@lists.denx.de>; Wed, 01 Apr 2026 07:15:25 -0700 (PDT)",
            "from lion.localdomain (p4fc3dd86.dip0.t-ipconnect.de.\n [79.195.221.134]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-4887c8bcaf8sm43224135e9.27.2026.04.01.07.15.24\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 01 Apr 2026 07:15:24 -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,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1775052925; x=1775657725; darn=lists.denx.de;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n :reply-to; bh=4ySESJfourxrh2m62qey3M/YF6AEV8fxCE1YjUIBwGs=;\n b=ORlFZvP591AmlXwa3mny7p3MGS8EAD5jokEYyr70675S3yBE509TT3KOc5N+pd5R7E\n tL9y6w4RUzUfxQmZ2icxMgDJx75XDC+keg2UE6DkVvDXGgYtk5V0jjXzBxEROtBSq+xc\n Or/CzWY6GTagQIxWsW6xf2SX8pjl+RN932Mdx1Y1smZ42w2wcHmEIorvadRH5ubgykKw\n nlUAOA1fXeTwE8rIvZSlyBlmPZWJqXwnxsAsjhnPF2SNoVeZ4KYPlf82Im7PleG5/VHZ\n ASk8XVpONTUQ+GqUX6bH9wgAhCre4XP9QpSnzMSlTBvz1NEkbsBvS13hazRjL6d51gFQ\n SHZA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775052925; x=1775657725;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=4ySESJfourxrh2m62qey3M/YF6AEV8fxCE1YjUIBwGs=;\n b=gkS7ZlVsuIUmQALc2QlQHz/mBCWn/WwOfGFyvv2gJMhiuekPyfr4ZV+3CwW0Eymb7z\n U3y3Nuql+V4EGTGRD8hfZIl5kFkbSp7nRVGyh19Dm1N+N43Kt4CihdtnD1eTg9PA70qL\n s0N3FA8Aag7eQHdiGIt1fWZ6WsYDuwdpa2fQzUnJj35LoYmlS5V8eV7By58Pcu80+nTQ\n g2DVkwiObcJjKQnJduTeZ0F4oaQ6Kzf1w8LF0G9413XadUZMkk9VQ/pzzfBgRkY7D6tU\n tLfXU0qMmtZ61U6515+H4l8RY6zn6Sws+oKrt5clug0jFhrw196K5VB78FiyUZ+kTqTl\n JJ9w==",
        "X-Gm-Message-State": "AOJu0Ywkrizh9UFaHh0ncPOo5dGHtvHjmdE/iU22ub84eJZLnF5unoEx\n Dwgc2y41LzhortBEeZoNkxDjsqduVGE8+DtE33E/q9vAekH1GyyYzBR65e666+fK7Thr9p4JfKv\n BqFfwAOw=",
        "X-Gm-Gg": "ATEYQzww/rpctgE93KTqNiZq0JDRyNS1Xpgaa4wW//uzPVD/0YLYaw8lKXD6k0VoKOQ\n AzsxljPQTgJjUkTS9RCzSHqSxgiuYrHC3ctUXM3SGGtai5iY5uK7GWT8HWOIEw49HtzE+FoPEIK\n +yvXx1o9esj2630rKMtYRT4Fgaxq4QpLSOnBW4tjaF/pJDdtT9blEo6DIzOlWxLDRpTe0OXc7Va\n UJjNLyG6VlIc3pSnrxZGBgkbWFjNHvjUxeRDaWsNyCugxBIZhHAHr/3lNx4PAEOzNiCbmiW5h5Q\n 9/EWaURX/Gh+liU4Z6T34bh/dCZuMkEIqRykLYJdgbOLJ4u8MF5/yKznvLGIYA9XtWTUPRvAK0J\n 9w709xnsI//tnCNNdAMzaF7LDQPwUazBtOZUA61MjUYxb46K7HJ16tcKnyhCCpC1hyVPytt+z2G\n v8H3stZqCIyTFOe0p5llbF8EW1UDWf+6N7k+noqrftYE/q4qJ/TkE3I+myTdmxMU7yjB5I",
        "X-Received": "by 2002:a05:600c:828f:b0:485:4388:348b with SMTP id\n 5b1f17b1804b1-48883310809mr71280885e9.0.1775052925032;\n Wed, 01 Apr 2026 07:15:25 -0700 (PDT)",
        "From": "Casey Connolly <casey.connolly@linaro.org>",
        "Date": "Wed, 01 Apr 2026 16:15:17 +0200",
        "Subject": "[PATCH v2 01/11] vsprintf: add %pOF",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260401-casey-ccf-compat-v2-1-414d5b7f040b@linaro.org>",
        "References": "<20260401-casey-ccf-compat-v2-0-414d5b7f040b@linaro.org>",
        "In-Reply-To": "<20260401-casey-ccf-compat-v2-0-414d5b7f040b@linaro.org>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Tom Rini <trini@konsulko.com>,\n Casey Connolly <casey.connolly@linaro.org>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Simon Glass <sjg@chromium.org>,\n Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>,\n Romain Gantois <romain.gantois@bootlin.com>,\n Andrew Goodbody <andrew.goodbody@linaro.org>,\n Patrice Chotard <patrice.chotard@foss.st.com>,\n Raymond Mao <raymondmaoca@gmail.com>, Peng Fan <peng.fan@nxp.com>",
        "X-Mailer": "b4 0.15-dev-47773",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=2375;\n i=casey.connolly@linaro.org; h=from:subject:message-id;\n bh=rEJNtXZP5+H5gwqn8qXTXflA9ZA9fkONh6/nGZHH35Y=;\n b=owGbwMvMwCFYaeA6f6eBkTjjabUkhsyzGpVxwa9fczWeNl1+WmOZu/TN6pNn5bjirr7p/ZE7/\n +QJQanAjlIWBkEOBlkxRRbxE8ssm9ZettfYvuACzBxWJpAhDFycAjCRLF5Ghk7+EuftS68tDj2b\n su7rh9n7i/oc+LdWp0UmCGo/zRKav4Hhf3ym0tezc/vvXPzrMGXR1seaV+9fiwpj5yg61rUg8MV\n J1zgA",
        "X-Developer-Key": "i=casey.connolly@linaro.org; a=openpgp;\n fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47",
        "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": "This prints a full ofnode path.\n\nSigned-off-by: Casey Connolly <casey.connolly@linaro.org>\n---\n lib/vsprintf.c | 37 +++++++++++++++++++++++++++++++++++++\n 1 file changed, 37 insertions(+)",
    "diff": "diff --git a/lib/vsprintf.c b/lib/vsprintf.c\nindex c7340a047b2e..49dc9c38c652 100644\n--- a/lib/vsprintf.c\n+++ b/lib/vsprintf.c\n@@ -25,8 +25,13 @@\n #include <linux/err.h>\n #include <linux/types.h>\n #include <linux/string.h>\n \n+/* For %pOF */\n+#if CONFIG_IS_ENABLED(OF_CONTROL)\n+#include <dm/ofnode.h>\n+#endif\n+\n /* we use this so that we can do without the ctype library */\n #define is_digit(c)\t((c) >= '0' && (c) <= '9')\n \n static int skip_atoi(const char **s)\n@@ -437,8 +442,32 @@ static char *uuid_string(char *buf, char *end, u8 *addr, int field_width,\n \treturn string(buf, end, uuid, field_width, precision, flags);\n }\n #endif\n \n+#if CONFIG_IS_ENABLED(OF_CONTROL) && !defined(API_BUILD)\n+static char *ofnode_string(char *buf, char *end, ofnode *dp, int field_width,\n+\t\t\t\tint precision, int flags)\n+{\n+#define NP_PATH_MAX 64\n+\tchar str[NP_PATH_MAX] = { 0 };\n+\tconst char *err = \"...\";\n+\n+\t/* If dp == NULL output the string '<NULL>' */\n+\tif (!dp || !ofnode_valid(*dp))\n+\t\treturn string(buf, end, NULL, field_width, precision, flags);\n+\n+\t/* Get the path and indicate if it got cut off */\n+\tif (ofnode_get_path(*dp, str, NP_PATH_MAX)) {\n+\t\tstr[NP_PATH_MAX - 1] = '\\0';\n+\t\tchar *p = str + min((NP_PATH_MAX - 2) - strlen(err), strlen(str));\n+\t\tmemcpy(p, err, strlen(err) + 1);\n+\t}\n+\n+\treturn string(buf, end, str, field_width, precision, flags);\n+#undef NP_PATH_MAX\n+}\n+#endif\n+\n /*\n  * Show a '%p' thing.  A kernel extension is that the '%p' is followed\n  * by an extra set of alphanumeric characters that are extended format\n  * specifiers.\n@@ -472,8 +501,16 @@ static char *pointer(const char *fmt, char *buf, char *end, void *ptr,\n #if CONFIG_IS_ENABLED(EFI_DEVICE_PATH_TO_TEXT) && !defined(API_BUILD)\n \tcase 'D':\n \t\treturn device_path_string(buf, end, ptr, field_width,\n \t\t\t\t\t  precision, flags);\n+#endif\n+/* Device paths only exist in the EFI context. */\n+#if CONFIG_IS_ENABLED(OF_CONTROL) && !defined(API_BUILD)\n+\tcase 'O':\n+\t\tif (fmt[1] == 'F')\n+\t\t\treturn ofnode_string(buf, end, ptr, field_width,\n+\t\t\t\t\t  precision, flags);\n+\t\tbreak;\n #endif\n \tcase 'a':\n \t\tflags |= SPECIAL | ZEROPAD;\n \n",
    "prefixes": [
        "v2",
        "01/11"
    ]
}