get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2222453,
    "url": "http://patchwork.ozlabs.org/api/patches/2222453/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260412012323.1807856-1-chao.liu.zevorn@gmail.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/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": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260412012323.1807856-1-chao.liu.zevorn@gmail.com>",
    "list_archive_url": null,
    "date": "2026-04-12T01:23:23",
    "name": "[v1] 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/people/92265/?format=api",
        "name": "Chao Liu",
        "email": "chao.liu.zevorn@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260412012323.1807856-1-chao.liu.zevorn@gmail.com/mbox/",
    "series": [
        {
            "id": 499581,
            "url": "http://patchwork.ozlabs.org/api/series/499581/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=499581",
            "date": "2026-04-12T01:23:23",
            "name": "[v1] hw/char/riscv_htif: Fix format specifier for uint64_t",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499581/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2222453/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2222453/checks/",
    "tags": {},
    "related": [],
    "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=T/FTd0cD;\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 4ftXrv3K8Yz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 12 Apr 2026 11:24:45 +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 1wBjYX-0004JG-GO; Sat, 11 Apr 2026 21:24:09 -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 1wBjYW-0004J0-SV\n for qemu-devel@nongnu.org; Sat, 11 Apr 2026 21:24:08 -0400",
            "from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742])\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 1wBjYV-00079s-8t\n for qemu-devel@nongnu.org; Sat, 11 Apr 2026 21:24:08 -0400",
            "by mail-qk1-x742.google.com with SMTP id\n af79cd13be357-8c9f6b78ca4so387748285a.0\n for <qemu-devel@nongnu.org>; Sat, 11 Apr 2026 18:24:06 -0700 (PDT)",
            "from ZEVORN-PC.bbrouter ([162.244.208.119])\n by smtp.gmail.com with ESMTPSA id\n af79cd13be357-8ddb9833c6asm562381385a.42.2026.04.11.18.23.59\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 11 Apr 2026 18:24:03 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775957045; x=1776561845; 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=gzxvyg9DAiaJCfwiPoi4wC/1aA5w3LQq6pswVaNHAgg=;\n b=T/FTd0cD5SMgewfzor4BjBDRQ7pjuDJ9/7/wgNRT/laJ/Z4/QqbTjxQ1dP1PzgsZ7p\n LNDRvq2WjzDjdlgUrf2RhRTQEOCTRn+DAEwu5aUv9lhkxnlphU85PiP5NA6Z1dBu626E\n AGwcAkpDmQxWvVXiNdKpICvMGG/LedbubDX3toHu9lluJP0R2uiHGbgbBiGrg3WHPSok\n ZYjvR2NgN72//rnreUTY4CnD6EOC3SBSe3xZZ8b4daHZRb+RnD343PKP3RJ2DPClRCDw\n bi1phOE+6QkJIMz2KPVC1VSCScMVjrNLxIQMNeMI4hXRqY5sQ377uOsTdGEDF8lfDoF0\n vbMg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775957045; x=1776561845;\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=gzxvyg9DAiaJCfwiPoi4wC/1aA5w3LQq6pswVaNHAgg=;\n b=Vc60ROQov18v8LkNRI9CWGbPt7jc6AhvcbJs2TVDCAn2apPSKwSzNQ0Llr4r6nnxHC\n EDi+5+Oj4YRde2xmD/T9vTKxNIyBQCfjdU5HPhxaHFlweVSpcfnjHIrksr4n8W8cwF0j\n IkkWljq2Y0pYM2gqPCOvU0YP4X9zOyJ3DX1E2T7jKQ3/v1S10qfD1RAahGeRun+BsNNg\n 8sP8wXyppIwHoFe7GNpdSQEX3yE+iYPmkPIXz6pk1Ox+2OEeDX757pfLOB6JLba1K/H1\n X81pFgz9c5VhJGNHbatRHuRkO/NdlPjFBNVp0vwt0ayoAKFCCPdCVm8ZKQcRd1VP6LjP\n hifA==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCVW+SCMUT0JT5+Btrypy6L9zz6nf7rzyGSMd3CzEKwku64rOnesx+CRYYRbo3Napyjq9jayo927zigs@nongnu.org",
        "X-Gm-Message-State": "AOJu0YxggBN3ouglLCXeNwBrDLFGw32vzjU7iUf9jWHBtQPNXSd9jT8k\n vCwLH5DYHcOh385AJFYns4Px86YyzLKBZQsvsKX5evxYsANjpbKokniL",
        "X-Gm-Gg": "AeBDievGAO3x46NgHudUytIJ0T/sULenBf3BflDSpnSlt+MZYYzAcuySROQu54cFTeT\n nQ4Lh6jCXriP06h3rpGaH+hWnhymPAiwz1eujqErHKrtll/DSi0U0q6+v1hVlBtWl7HKH4mbnhd\n PAs31BfvKDmxjaArg4uxpWXKsZN7VYKlwFkZDz3m++3nEm8TephAVYzdthgepqMXGt0wNMwYM5S\n y3YEt3rWEVppuZKGa9MSKuY61JLdCUVkyU/bWnjHfDc4gkpHPHVXD0Q+0uEWwCRsAQDlMfLCu7O\n E56HiaLmMH5CVlfeph/SlVKMqKz8vvFpE9Rc30E3JBgnvvrj/79J/kpV91giSIHB/3mcc6D0K7o\n uYoI+leTGssp9ypNkyiu0GqciEYVxBJcDN2EvuGRJ4R5dGygEYu2ygJYt+UITkLDIk2m2jNZTZ3\n 67VNwRz1CWUJir/1JtDDTou0DrwS02KUkNoMZw6KSszgAX0WP95LDIF1MtGttqHjBjVce0",
        "X-Received": "by 2002:a05:620a:c43:b0:8cf:d6f8:5983 with SMTP id\n af79cd13be357-8ddcf6b69b6mr1253159485a.55.1775957045374;\n Sat, 11 Apr 2026 18:24:05 -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": "tangtao1634@phytium.com.cn, qemu-riscv@nongnu.org, qemu-devel@nongnu.org",
        "Subject": "[PATCH v1] hw/char/riscv_htif: Fix format specifier for uint64_t",
        "Date": "Sun, 12 Apr 2026 09:23:23 +0800",
        "Message-ID": "<20260412012323.1807856-1-chao.liu.zevorn@gmail.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=2607:f8b0:4864:20::742;\n envelope-from=chao.liu.zevorn@gmail.com; helo=mail-qk1-x742.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  https://gitlab.com/TaoTang/qemu/-/jobs/13878406521\n\nFixes: d98f7a541c2c (\"riscv_htif: reject invalid signature ranges (end <= begin)\")\nSigned-off-by: Chao Liu <chao.liu.zevorn@gmail.com>\nTested-by: Tao Tang <tangtao1634@phytium.com.cn>\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": [
        "v1"
    ]
}