get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2223529,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2223529/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260415134826.1742308-1-chao.liu.zevorn@gmail.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20260415134826.1742308-1-chao.liu.zevorn@gmail.com>",
    "date": "2026-04-15T13:48:26",
    "name": "[v2] hw/char/riscv_htif: Fix format specifier for uint64_t",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "88731440431e742ff97a57cd3d7029a58fea769d",
    "submitter": {
        "id": 92265,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/92265/?format=api",
        "name": "Chao Liu",
        "email": "chao.liu.zevorn@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260415134826.1742308-1-chao.liu.zevorn@gmail.com/mbox/",
    "series": [
        {
            "id": 499990,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/499990/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=499990",
            "date": "2026-04-15T13:48:26",
            "name": "[v2] hw/char/riscv_htif: Fix format specifier for uint64_t",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/499990/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2223529/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2223529/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "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=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=igUL1L5X;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fwjFY3wW8z1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 15 Apr 2026 23:50:07 +1000 (AEST)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wD0ca-0007Bw-DJ; Wed, 15 Apr 2026 09:49:36 -0400",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <chao.liu.zevorn@gmail.com>)\n id 1wD0cV-00077d-H1\n for qemu-devel@nongnu.org; Wed, 15 Apr 2026 09:49:31 -0400",
            "from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <chao.liu.zevorn@gmail.com>)\n id 1wD0cP-0001XW-Mp\n for qemu-devel@nongnu.org; Wed, 15 Apr 2026 09:49:28 -0400",
            "by mail-qt1-x841.google.com with SMTP id\n d75a77b69052e-50d9436f2adso78374671cf.3\n for <qemu-devel@nongnu.org>; Wed, 15 Apr 2026 06:49:22 -0700 (PDT)",
            "from ZEVORN-PC.bbrouter ([162.244.208.119])\n by smtp.gmail.com with ESMTPSA id\n d75a77b69052e-50e1afdd385sm13104721cf.25.2026.04.15.06.49.16\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 15 Apr 2026 06:49:20 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1776260962; x=1776865762; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=06bWpmeGNzELxEsB1mejdwF0z+sQCt1wkIrogQp5NPo=;\n b=igUL1L5X9sMthkUE7gApQ0AvCTfoWAReRxl5AAZvcPgRvQXRCAI9IOomw2ilGSEYEP\n WYvRdReNgvoQVswVBkI5sK0tfeuExYyevQ3DwnUsQfNahfE5xqVU0/7xKbGVhKhwgeEE\n +/iPJ7YnmqBk8FhoHjJp3mlvgihy+EQFIGI6xvMtAVu3XtapCfTG/4nuRnsal1iBCI1T\n 1VgyijkwrS0cPJdYQdcWTXKeD5VSmCoDv7JSMMEtsbWPbEf7bvaoXCehw9ql2X5z+ETt\n xWJtAZdrzzVL2Fq/wNSJKQMGcbaUcavMVX60A3we7uHSvoMgf6K2tglie7UNht3NYs80\n a6YQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776260962; x=1776865762;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=06bWpmeGNzELxEsB1mejdwF0z+sQCt1wkIrogQp5NPo=;\n b=HcGaLhHGqW4nUeLyuY4dV8izl7TWcfAVy4NxqibAWC5uFvFyBScnd+IqA6VkDg0fSe\n gdtIrdACTBsGYcSV1nU7ChydrPsPty3FAFxfA1ssMFjZrlDl+xhj0XdqA5Gz5z2SYWom\n Mheq6P0nwvdB92COZSDvGsXuFVDyCA7Tcw6L2fD7H1BOiYe1N2VULZuunhXm7bjtWKz9\n V0Jic83tvrn2sQ2NJWqr15YvOuAb7q6rt6YcqIaStpv0fTVB3DC1wvt+hWV79TrvK60I\n Ysfqjq2zgqwKRZgr0WHxwUmrO4hdK+BolGJ2vNfxuqYPL++wwN+gwD/QKcj7rwoeiIiO\n jfpQ==",
        "X-Gm-Message-State": "AOJu0Yxzfee1CXTbev20aGYC27bWLwLvLzWp+JupbUoeGOW0tTBaDeTe\n veqLHEgtaddbro0MQX/UDrkqnf6xzfH7+5MCazAV84/m79v90NkzIO3h",
        "X-Gm-Gg": "AeBDieudXy1uHW4ulRTWHcfKBS6eWYF3ghPBk/sVD60+jyU5WA+E6PomyJ8yZ5XkKFp\n /TUnUs3DfftTy9sE4fIxEt0LNIg7VVmlWv8ky5mn5ZVLNt1vJjvcrcCQQJESF53CaYc/CuNKxsK\n Ly1nA771xgdZTcsanw7FpNJBTSgkxAOQKxomILcfu5j81I9M1bzmf7uO9RHeMxtdXm3BJIz+Ygg\n nbNExSs1j3xjx+9w9Ya5Mv4suT7FpO11Y+LJMkx7/Ge5X1zCG0YmzXDrwBzbXx9IAKEk/Uqo1jv\n wmIk6ZWlCDLQsGX2P1FNklELMQwDTCt4rZ+SduP9q5nhZXSqSyxq947/x80eIgJVrbnu72Wj2D1\n HVEKunnC4t3tT92mHlkkbjjiYJ00VJVE9rQXo/CNz4yZNeTx2fzzOS4Z2Ak4s2YmBMD5gkUZsKs\n STOdbJRcpi8BnSH50BSnkQSTHYVIr3ZrB1kT5wljUAHA4oyBVdTrB89iYW+/cY1sDuRCjE",
        "X-Received": "by 2002:a05:622a:598a:b0:50b:506d:736b with SMTP id\n d75a77b69052e-50dd5c12825mr303069371cf.47.1776260961647;\n Wed, 15 Apr 2026 06:49:21 -0700 (PDT)",
        "From": "Chao Liu <chao.liu.zevorn@gmail.com>",
        "To": "Palmer Dabbelt <palmer@dabbelt.com>,\n Alistair Francis <alistair.francis@wdc.com>, Weiwei Li <liwei1518@gmail.com>,\n Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>,\n Liu Zhiwei <zhiwei_liu@linux.alibaba.com>,\n Chao Liu <chao.liu.zevorn@gmail.com>,\n =?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com>,\n Paolo Bonzini <pbonzini@redhat.com>",
        "Cc": "qemu-devel@nongnu.org, tangtao1634@phytium.com.cn, qemu-riscv@nongnu.org,\n\t=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>",
        "Subject": "[PATCH v2] hw/char/riscv_htif: Fix format specifier for uint64_t",
        "Date": "Wed, 15 Apr 2026 21:48:26 +0800",
        "Message-ID": "<20260415134826.1742308-1-chao.liu.zevorn@gmail.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=2607:f8b0:4864:20::841;\n envelope-from=chao.liu.zevorn@gmail.com; helo=mail-qt1-x841.google.com",
        "X-Spam_score_int": "-20",
        "X-Spam_score": "-2.1",
        "X-Spam_bar": "--",
        "X-Spam_report": "(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=ham autolearn_force=no",
        "X-Spam_action": "no action",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "qemu development <qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "Use PRIx64 instead of %llx for uint64_t arguments to avoid\n-Werror=format warnings on platforms where uint64_t is not\nlong long.\n\nThis fixes the cross-riscv64-system CI failure:\n\n  ../hw/char/riscv_htif.c: In function 'htif_handle_tohost_write':\n  ../hw/char/riscv_htif.c:175:38: error: format '%llx' expects argument\n  of type 'long long unsigned int', but argument 2 has type 'uint64_t'\n  {aka 'long unsigned int'} [-Werror=format=]\n\nFixes: d98f7a541c2c (\"riscv_htif: reject invalid signature ranges (end <= begin)\")\nTested-by: Tao Tang <tangtao1634@phytium.com.cn>\nReviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>\nReviewed-by: Alistair Francis <alistair.francis@wdc.com>\nSigned-off-by: Chao Liu <chao.liu.zevorn@gmail.com>\n---\n hw/char/riscv_htif.c | 5 +++--\n 1 file changed, 3 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/hw/char/riscv_htif.c b/hw/char/riscv_htif.c\nindex 65ddea3fc8..a53d2ace02 100644\n--- a/hw/char/riscv_htif.c\n+++ b/hw/char/riscv_htif.c\n@@ -172,8 +172,9 @@ static void htif_handle_tohost_write(HTIFState *s, uint64_t val_written)\n                  */\n                 if (sig_file && begin_sig_addr && end_sig_addr) {\n                     if (end_sig_addr <= begin_sig_addr) {\n-                        error_report(\"Invalid HTIF signature range: begin=0x%llx end=0x%llx\",\n-                                    begin_sig_addr, end_sig_addr);\n+                        error_report(\"Invalid HTIF signature range:\"\n+                                     \" begin=0x%\" PRIx64 \" end=0x%\" PRIx64,\n+                                     begin_sig_addr, end_sig_addr);\n                         return;\n                     }\n                     uint64_t sig_len = end_sig_addr - begin_sig_addr;\n",
    "prefixes": [
        "v2"
    ]
}