get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 88251,
    "url": "https://patches.dpdk.org/api/patches/88251/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210225182250.1149592-13-thomas@monjalon.net/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20210225182250.1149592-13-thomas@monjalon.net>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210225182250.1149592-13-thomas@monjalon.net",
    "date": "2021-02-25T18:22:45",
    "name": "[v5,12/17] common/dpaax/caamflib: simplify log macros",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "5ce8cef5d39e674050f193a21663fb4b002512b7",
    "submitter": {
        "id": 685,
        "url": "https://patches.dpdk.org/api/people/685/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas@monjalon.net"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210225182250.1149592-13-thomas@monjalon.net/mbox/",
    "series": [
        {
            "id": 15388,
            "url": "https://patches.dpdk.org/api/series/15388/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=15388",
            "date": "2021-02-25T18:22:33",
            "name": "Alpine/musl build support",
            "version": 5,
            "mbox": "https://patches.dpdk.org/series/15388/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/88251/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/88251/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id E9DE8A034F;\n\tThu, 25 Feb 2021 19:24:53 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 715FC1608B2;\n\tThu, 25 Feb 2021 19:24:00 +0100 (CET)",
            "from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com\n [66.111.4.26]) by mails.dpdk.org (Postfix) with ESMTP id 8A70E1608AC\n for <dev@dpdk.org>; Thu, 25 Feb 2021 19:23:58 +0100 (CET)",
            "from compute2.internal (compute2.nyi.internal [10.202.2.42])\n by mailout.nyi.internal (Postfix) with ESMTP id 33C8B5C00AF;\n Thu, 25 Feb 2021 13:23:58 -0500 (EST)",
            "from mailfrontend1 ([10.202.2.162])\n by compute2.internal (MEProxy); Thu, 25 Feb 2021 13:23:58 -0500",
            "from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184])\n by mail.messagingengine.com (Postfix) with ESMTPA id 9890A240067;\n Thu, 25 Feb 2021 13:23:57 -0500 (EST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=\n from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding; s=fm3; bh=G1oqJfYuTS5fo\n +2YaxQNIcDkIeLpWlAW0XoBux5ubVE=; b=nEX+kIBAXUiTISFSdlbH5/YLTt7dx\n QHNUq2IrJhDOSInbVJk25ZeHtXy1G/ojEgaiv9gY05Mmtd/moGApuNOjp5dpXKE6\n 3Fz4BmEmkkiesetHOfhHTzH1rqe7AEDd9vtRbQWZqnD5iyhuLkq13r3thXdR+2WC\n i04bCsGd6/ODiLpp+KUhgNWxIfkrQtzv9v7uaa39YkspwsWC7XTP+NaJMEHVxiHt\n e6eiEcJobwui+OLSPSay94Q9uqKJeJTpf8cRliLrSiUjmaKCAJZ0U5iadm2YkaSm\n pVjyW9pq7s1twlqTxs9OCSDtfVsbC/4sog4PiVP70RjoJkzJ7TDtCfj1A==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n messagingengine.com; h=cc:content-transfer-encoding:date:from\n :in-reply-to:message-id:mime-version:references:subject:to\n :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=\n fm2; bh=G1oqJfYuTS5fo+2YaxQNIcDkIeLpWlAW0XoBux5ubVE=; b=kQmHsYQt\n 3ybSG6PGW9UD52X31NwZzNtrK8s3+J4WSawKmq60SKP8knqPTRTbc/B5yw+3KP1+\n cOBjfL/U7fwMLkGeiUO6aCFMObv1u+Wlegn88i6fMvDz0Jw0Yh1hlpCLqA3xIkoX\n vDHIpCDbixLXUwBW65LnkOx00aqf3qu/nHN1u5bnd5dIeozeUFcj61riHybEl/Rq\n s37BnkRLlG0XkmKhiLdQIWtcm9932wFN6xmJjiUnTIWRoWjkemQ3jENKxR+pGDX1\n zxJ0iNsClPzZ6J4JQEiYFs3ZBPq7klDwTgILDKrL01dsUcRKnIh3fUMT/DK1pCv7\n A6US/xRqZu65cQ=="
        ],
        "X-ME-Sender": "<xms:Pus3YAszDBuG6LPHtODimNe_aDqk2SG3hpFTBUP5MzKMtOxJfAHQqQ>\n <xme:Pus3YNe5J1ruojApSzYHCiPw3KneuTdhJ4N4HnpA4yUR7ebhsSNhZB5kUh8WKeIUI\n UJbUKB4UmslLiDjgA>",
        "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgeduledrkeelgdduudegucetufdoteggodetrfdotf\n fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen\n uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne\n cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr\n shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg\n ftrfgrthhtvghrnhepvdehgfeivdejgedtveehfefhteelfefgieevgfffveefjeegtdfg\n uedthedtgeevnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf\n hiiigvpeelnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl\n ohhnrdhnvght",
        "X-ME-Proxy": "<xmx:Pus3YLyidc9xX6Z2rx_88kRk62QbM4AQYnw54BQNcH8dhZAoHmeofw>\n <xmx:Pus3YDOefldcgZjuUM9MFvfsMOXbDTmFOtpr43sHl1OIhwMD4ggQdw>\n <xmx:Pus3YA_yUlDEaMtrFeBPkRaqG0mlFdVBtNF_VF3WiU-qQ2S8M7Euiw>\n <xmx:Pus3YOkcSpF7N4EmWUHMJVuTh8qSjqK-i0_RdBIbQIM0kzfiuJCNmQ>",
        "From": "Thomas Monjalon <thomas@monjalon.net>",
        "To": "dev@dpdk.org",
        "Cc": "ncopa@alpinelinux.org, Hemant Agrawal <hemant.agrawal@nxp.com>,\n Sachin Saxena <sachin.saxena@oss.nxp.com>",
        "Date": "Thu, 25 Feb 2021 19:22:45 +0100",
        "Message-Id": "<20210225182250.1149592-13-thomas@monjalon.net>",
        "X-Mailer": "git-send-email 2.30.1",
        "In-Reply-To": "<20210225182250.1149592-1-thomas@monjalon.net>",
        "References": "<20190313170657.16688-1-ncopa@alpinelinux.org>\n <20210225182250.1149592-1-thomas@monjalon.net>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v5 12/17] common/dpaax/caamflib: simplify log\n macros",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Natanael Copa <ncopa@alpinelinux.org>\n\nSimplify pr_debug, pr_err and pr_warn macros by adding an intermediate\npr_msg macro. This way we only need to test for SUPPRESS_PRINTS once.\n\nSigned-off-by: Natanael Copa <ncopa@alpinelinux.org>\nAcked-by: Hemant Agrawal <hemant.agrawal@nxp.com>\n---\n drivers/common/dpaax/caamflib/compat.h | 28 +++++++++++---------------\n 1 file changed, 12 insertions(+), 16 deletions(-)",
    "diff": "diff --git a/drivers/common/dpaax/caamflib/compat.h b/drivers/common/dpaax/caamflib/compat.h\nindex c1a693498d..9776eed437 100644\n--- a/drivers/common/dpaax/caamflib/compat.h\n+++ b/drivers/common/dpaax/caamflib/compat.h\n@@ -40,31 +40,27 @@\n #define __maybe_unused __rte_unused\n #endif\n \n+#if defined(SUPPRESS_PRINTS)\n+#define pr_msg(l, fmt, ...) do { } while (0)\n+#else\n+#define pr_msg(l, fmt, ...) \\\n+\tRTE_LOG(l, PMD, \"%s(): \" fmt \"\\n\", __func__, ##__VA_ARGS__)\n+#endif\n+\n #if !defined(pr_debug)\n-#if !defined(SUPPRESS_PRINTS) && defined(RTA_DEBUG)\n-#define pr_debug(fmt, ...) \\\n-\tRTE_LOG(DEBUG, PMD, \"%s(): \" fmt \"\\n\", __func__, ##__VA_ARGS__)\n+#if defined(RTA_DEBUG)\n+#define pr_debug(fmt, ...) pr_msg(DEBUG, fmt, ##__VA_ARGS__)\n #else\n-#define pr_debug(fmt, ...)     do { } while (0)\n+#define pr_debug(fmt, ...) do { } while (0)\n #endif\n #endif /* pr_debug */\n \n #if !defined(pr_err)\n-#if !defined(SUPPRESS_PRINTS)\n-#define pr_err(fmt, ...) \\\n-\tRTE_LOG(ERR, PMD, \"%s(): \" fmt \"\\n\", __func__, ##__VA_ARGS__)\n-#else\n-#define pr_err(fmt, ...)    do { } while (0)\n-#endif\n+#define pr_err(fmt, ...) pr_msg(ERR, fmt, ##__VA_ARGS__)\n #endif /* pr_err */\n \n #if !defined(pr_warn)\n-#if !defined(SUPPRESS_PRINTS)\n-#define pr_warn(fmt, ...) \\\n-\tRTE_LOG(WARNING, PMD, \"%s(): \" fmt \"\\n\", __func__, ##__VA_ARGS__)\n-#else\n-#define pr_warn(fmt, ...)    do { } while (0)\n-#endif\n+#define pr_warn(fmt, ...) pr_msg(WARNING, fmt, ##__VA_ARGS__)\n #endif /* pr_warn */\n \n /**\n",
    "prefixes": [
        "v5",
        "12/17"
    ]
}