get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 71650,
    "url": "http://patches.dpdk.org/api/patches/71650/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200617063047.1555518-2-jerinj@marvell.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<20200617063047.1555518-2-jerinj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200617063047.1555518-2-jerinj@marvell.com",
    "date": "2020-06-17T06:30:35",
    "name": "[01/13] eal/log: introduce log register macro",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "65c901d6227fcf753b068fa19c68f03404fe3206",
    "submitter": {
        "id": 1188,
        "url": "http://patches.dpdk.org/api/people/1188/?format=api",
        "name": "Jerin Jacob Kollanukkaran",
        "email": "jerinj@marvell.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200617063047.1555518-2-jerinj@marvell.com/mbox/",
    "series": [
        {
            "id": 10476,
            "url": "http://patches.dpdk.org/api/series/10476/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10476",
            "date": "2020-06-17T06:30:34",
            "name": "rte_log registration usage improvement",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/10476/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/71650/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/71650/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id B6059A04A5;\n\tWed, 17 Jun 2020 08:30:28 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id A8B5A5F2F;\n\tWed, 17 Jun 2020 08:30:22 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id A3DCF4F9C\n for <dev@dpdk.org>; Wed, 17 Jun 2020 08:30:20 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n 05H6TxL1010750; Tue, 16 Jun 2020 23:30:18 -0700",
            "from sc-exch03.marvell.com ([199.233.58.183])\n by mx0a-0016f401.pphosted.com with ESMTP id 31q676jkfy-2\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Tue, 16 Jun 2020 23:30:18 -0700",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH03.marvell.com\n (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Tue, 16 Jun 2020 23:30:18 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Tue, 16 Jun 2020 23:30:18 -0700",
            "from jerin-lab.marvell.com (jerin-lab.marvell.com [10.28.34.14])\n by maili.marvell.com (Postfix) with ESMTP id B35B13F7041;\n Tue, 16 Jun 2020 23:30:16 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0818;\n bh=6fRqqxC7223if7Dh3hL4KIojhcdJU/6K2U52iWqfE20=;\n b=XL34KrBJ7Uf5fR22azYPsYWZLpCXV89U+lHDNg+SBipMIm3xmuA9ynXVG5/ZQBjQLVwt\n 99rcMPKBF3NlUMtwJLdjJnkUVgCXXGDoOlyKSlsfYEp10YiW/TXD8qf+hXg7kBq/BJUq\n KkgrX1Dmb88qOiDz/aD+Bn1LNHtmDCjxC2DrljcAWmak/kmPgKC5RjBPexJKEy0L8AJE\n CkXDAPYnhYr5Ugi39ZLdYad938khfEvTViqkS8IP61LL4ADk4J2dqS/LF33k6wvBg2Eu\n zD9myNhyvrCx7NiZ/V5h5bVOcHXHcTUYmU0QVlYH/9oqsGW5oPtMXht3ZhrJN8g0wZkt mw==",
        "From": "<jerinj@marvell.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<thomas@monjalon.net>, <olivier.matz@6wind.com>,\n <david.marchand@redhat.com>, Jerin Jacob <jerinj@marvell.com>",
        "Date": "Wed, 17 Jun 2020 12:00:35 +0530",
        "Message-ID": "<20200617063047.1555518-2-jerinj@marvell.com>",
        "X-Mailer": "git-send-email 2.26.2",
        "In-Reply-To": "<20200617063047.1555518-1-jerinj@marvell.com>",
        "References": "<20200617063047.1555518-1-jerinj@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.216, 18.0.687\n definitions=2020-06-16_13:2020-06-16,\n 2020-06-16 signatures=0",
        "Subject": "[dpdk-dev]  [PATCH 01/13] eal/log: introduce log register macro",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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: Jerin Jacob <jerinj@marvell.com>\n\nIntroducing the RTE_LOG_REGISTER macro to avoid the code duplication\nin the log registration process.\n\nIt is a wrapper macro for declaring the logtype, register the log and sets\nit's level in the constructor context.\n\nSigned-off-by: Jerin Jacob <jerinj@marvell.com>\n---\n lib/librte_eal/include/rte_log.h | 25 +++++++++++++++++++++++++\n 1 file changed, 25 insertions(+)",
    "diff": "diff --git a/lib/librte_eal/include/rte_log.h b/lib/librte_eal/include/rte_log.h\nindex 1789ede56..4dc357074 100644\n--- a/lib/librte_eal/include/rte_log.h\n+++ b/lib/librte_eal/include/rte_log.h\n@@ -376,6 +376,31 @@ int rte_vlog(uint32_t level, uint32_t logtype, const char *format, va_list ap)\n \t\t RTE_LOGTYPE_ ## t, # t \": \" __VA_ARGS__) :\t\\\n \t 0)\n \n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice\n+ *\n+ * Register a dynamic log type in constructor context with its name and level.\n+ *\n+ * It is a wrapper macro for declaring the logtype, register the log and sets\n+ * it's level in the constructor context.\n+ *\n+ * @param type\n+ *   The log type identifier\n+ * @param name\n+ *    Name for the log type to be registered\n+ * @param level\n+ *   Log level. A value between EMERG (1) and DEBUG (8).\n+ */\n+#define RTE_LOG_REGISTER(type, name, level)\t\t\t\\\n+int type;\t\t\t\t\t\t\t\\\n+RTE_INIT(__##type)\t\t\t\t\t\t\\\n+{\t\t\t\t\t\t\t\t\\\n+\ttype = rte_log_register(RTE_STR(name));\t\t\t\\\n+\tif (type >= 0)\t\t\t\t\t\t\\\n+\t\trte_log_set_level(type, RTE_LOG_##level);\t\\\n+}\n+\n #ifdef __cplusplus\n }\n #endif\n",
    "prefixes": [
        "01/13"
    ]
}