get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2194170,
    "url": "http://patchwork.ozlabs.org/api/patches/2194170/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/aYZ3QtGtUdsNVu4X@p100/",
    "project": {
        "id": 28,
        "url": "http://patchwork.ozlabs.org/api/projects/28/?format=api",
        "name": "Linux PCI development",
        "link_name": "linux-pci",
        "list_id": "linux-pci.vger.kernel.org",
        "list_email": "linux-pci@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<aYZ3QtGtUdsNVu4X@p100>",
    "list_archive_url": null,
    "date": "2026-02-06T23:20:34",
    "name": "pci: Show PCI bus number with hex prefix",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "64845548b600f7080527ef020a01a0a0c07bd2ac",
    "submitter": {
        "id": 87076,
        "url": "http://patchwork.ozlabs.org/api/people/87076/?format=api",
        "name": "Helge Deller",
        "email": "deller@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/aYZ3QtGtUdsNVu4X@p100/mbox/",
    "series": [
        {
            "id": 491348,
            "url": "http://patchwork.ozlabs.org/api/series/491348/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=491348",
            "date": "2026-02-06T23:20:34",
            "name": "pci: Show PCI bus number with hex prefix",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/491348/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2194170/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2194170/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-46918-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-pci@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=e8OP7LwX;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-pci+bounces-46918-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"e8OP7LwX\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\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 4f797F3SYnz1xvD\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 07 Feb 2026 10:20:41 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 66549301AD30\n\tfor <incoming@patchwork.ozlabs.org>; Fri,  6 Feb 2026 23:20:39 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id D4CF33090E5;\n\tFri,  6 Feb 2026 23:20:38 +0000 (UTC)",
            "from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id B20561A9F82;\n\tFri,  6 Feb 2026 23:20:38 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 0F0A0C116C6;\n\tFri,  6 Feb 2026 23:20:36 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1770420038; cv=none;\n b=MMw2MTnQ+j7k0v53aYLjoi2wIIvjgmtkBCFYQSe098q7SmQQF5QQ6bUH4XvDTVLSemHSZfhs5OIv0A1c2Wtsthm2qYwDx8Uojn6YBKkrZ2E+VPpi0M67QF+9h0lXcb2VUXfBVyVD8miuM4JBUns8tRj/3SKrWYlcWhrG72Woq9w=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1770420038; c=relaxed/simple;\n\tbh=daLtigT/CXjlneHopW+7e3vb4w73BJ77Jk7hiG+lTQs=;\n\th=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type:\n\t Content-Disposition;\n b=RsaRdMY3akrh0hHKqJlnDElzM/lQdMJX/9k4w5VmrsX7vxQH7MAZ8JiIVA81fhTAMJ0TNCLKLKNaqs67c17YE0Zoim4C3bXD1mlavGR2lHLIgW67V6Hfol1PNb8/GQcfYwJZ9ZU4+1BQwmMIzKIZPpBtRcRmxRcPFpaTXREbcPc=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=e8OP7LwX; arc=none smtp.client-ip=10.30.226.201",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1770420038;\n\tbh=daLtigT/CXjlneHopW+7e3vb4w73BJ77Jk7hiG+lTQs=;\n\th=Date:From:To:Subject:From;\n\tb=e8OP7LwXtdZ5ZWPAqUdkske620cSIIBWegeD8UMC0w3fDwHkGsOZDCA/vJzAM0ATR\n\t RrAkdjpqqgDa62MkhLK2rCZPw48DFSlr025f05nQFL9pnGpHbuBTCGUFmIYnaxKqXC\n\t rrh53vd/hc/MMmvWzSxm1LHod8Sc9aGHdEDfigDvh9McsZtrs2VX6EIDd7U/4fxzzL\n\t u5Vg18Kf/JKOpAxmT4NuAYMwuJLtKHTmcjZb8YQGB8XtKXkE6HNWZq0k4W+d8IFWZ6\n\t AZGmZMa5iR6R8v1JNY1ToUe7fmnZhVIB8pLtZ7y5KKQOmo4AtTIkFSzyBnc20gNAXG\n\t SrG7aYYAttoig==",
        "Date": "Sat, 7 Feb 2026 00:20:34 +0100",
        "From": "Helge Deller <deller@kernel.org>",
        "To": "Bjorn Helgaas <bhelgaas@google.com>, linux-pci@vger.kernel.org,\n\tAndrew Morton <akpm@linux-foundation.org>,\n\tlinux-kernel@vger.kernel.org",
        "Subject": "[PATCH] pci: Show PCI bus number with hex prefix",
        "Message-ID": "<aYZ3QtGtUdsNVu4X@p100>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-pci@vger.kernel.org",
        "List-Id": "<linux-pci.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-pci+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-pci+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=us-ascii",
        "Content-Disposition": "inline"
    },
    "content": "The PCI bus number is printed as hex number (base = 16) but without the \"0x\"\nprefix in the syslog, as can be seen here:\n  pci_bus 0000:00: root bus resource [io  0x0000-0xffff]\n  pci_bus 0000:00: root bus resource [mem 0xfffffffff8000000-0xfffffffff87fffff]\n  pci_bus 0000:00: root bus resource [bus 00-07]\n\nAdd the SPECIAL flag to the printk format to add the 0x prefix.\n\nSigned-off-by: Helge Deller <deller@gmx.de>",
    "diff": "diff --git a/lib/vsprintf.c b/lib/vsprintf.c\nindex a3790c43a0ab..f52fc95981b5 100644\n--- a/lib/vsprintf.c\n+++ b/lib/vsprintf.c\n@@ -1088,7 +1088,7 @@ char *resource_string(char *buf, char *end, struct resource *res,\n \t\t.base = 16,\n \t\t.field_width = 2,\n \t\t.precision = -1,\n-\t\t.flags = SMALL | ZEROPAD,\n+\t\t.flags = SPECIAL | SMALL | ZEROPAD,\n \t};\n \tstatic const struct printf_spec str_spec = {\n \t\t.field_width = -1,\n",
    "prefixes": []
}