get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 57747,
    "url": "http://patches.dpdk.org/api/patches/57747/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1566214919-32250-7-git-send-email-david.marchand@redhat.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": "<1566214919-32250-7-git-send-email-david.marchand@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1566214919-32250-7-git-send-email-david.marchand@redhat.com",
    "date": "2019-08-19T11:41:54",
    "name": "[06/11] drivers/compress: use new logtype wrapper",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "5c422f162a16a2a6b7f19b0224528c876ff6fc5b",
    "submitter": {
        "id": 1173,
        "url": "http://patches.dpdk.org/api/people/1173/?format=api",
        "name": "David Marchand",
        "email": "david.marchand@redhat.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/1566214919-32250-7-git-send-email-david.marchand@redhat.com/mbox/",
    "series": [
        {
            "id": 6072,
            "url": "http://patches.dpdk.org/api/series/6072/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6072",
            "date": "2019-08-19T11:41:48",
            "name": "Fixing log levels for dynamically loaded drivers",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/6072/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/57747/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/57747/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id A40971BED0;\n\tMon, 19 Aug 2019 13:42:30 +0200 (CEST)",
            "from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\n\tby dpdk.org (Postfix) with ESMTP id 341E01BECD\n\tfor <dev@dpdk.org>; Mon, 19 Aug 2019 13:42:29 +0200 (CEST)",
            "from smtp.corp.redhat.com\n\t(int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id A18C08D5BA6;\n\tMon, 19 Aug 2019 11:42:28 +0000 (UTC)",
            "from dmarchan.remote.csb (ovpn-204-32.brq.redhat.com\n\t[10.40.204.32])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id 448C71001B09;\n\tMon, 19 Aug 2019 11:42:25 +0000 (UTC)"
        ],
        "From": "David Marchand <david.marchand@redhat.com>",
        "To": "dev@dpdk.org",
        "Cc": "Lee Daly <lee.daly@intel.com>, Fiona Trahe <fiona.trahe@intel.com>,\n\tPablo de Lara <pablo.de.lara.guarch@intel.com>,\n\tAshish Gupta <ashish.gupta@marvell.com>, Sunila Sahu <ssahu@marvell.com>",
        "Date": "Mon, 19 Aug 2019 13:41:54 +0200",
        "Message-Id": "<1566214919-32250-7-git-send-email-david.marchand@redhat.com>",
        "In-Reply-To": "<1566214919-32250-1-git-send-email-david.marchand@redhat.com>",
        "References": "<1566214919-32250-1-git-send-email-david.marchand@redhat.com>",
        "X-Scanned-By": "MIMEDefang 2.84 on 10.5.11.22",
        "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.6.2\n\t(mx1.redhat.com [10.5.110.69]); Mon, 19 Aug 2019 11:42:28 +0000 (UTC)",
        "Subject": "[dpdk-dev] [PATCH 06/11] drivers/compress: use new logtype wrapper",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Make use of the newly introduced wrapper.\n\nSigned-off-by: David Marchand <david.marchand@redhat.com>\n---\n drivers/compress/isal/isal_compress_pmd.c | 8 ++------\n drivers/compress/octeontx/otx_zip_pmd.c   | 8 ++------\n drivers/compress/zlib/zlib_pmd.c          | 8 ++------\n 3 files changed, 6 insertions(+), 18 deletions(-)",
    "diff": "diff --git a/drivers/compress/isal/isal_compress_pmd.c b/drivers/compress/isal/isal_compress_pmd.c\nindex 7d2b05c..a273229 100644\n--- a/drivers/compress/isal/isal_compress_pmd.c\n+++ b/drivers/compress/isal/isal_compress_pmd.c\n@@ -753,9 +753,5 @@ RTE_PMD_REGISTER_VDEV(COMPDEV_NAME_ISAL_PMD, compdev_isal_pmd_drv);\n RTE_PMD_REGISTER_PARAM_STRING(COMPDEV_NAME_ISAL_PMD,\n \t\"socket_id=<int>\");\n \n-RTE_INIT(isal_init_log)\n-{\n-\tisal_logtype_driver = rte_log_register(\"pmd.compress.isal\");\n-\tif (isal_logtype_driver >= 0)\n-\t\trte_log_set_level(isal_logtype_driver, RTE_LOG_INFO);\n-}\n+RTE_LOG_REGISTER(isal_logtype_driver, \"pmd.compress.isal\",\n+\tRTE_LOG_INFO, RTE_LOGTYPE_PMD);\ndiff --git a/drivers/compress/octeontx/otx_zip_pmd.c b/drivers/compress/octeontx/otx_zip_pmd.c\nindex a1651b2..a0a2f05 100644\n--- a/drivers/compress/octeontx/otx_zip_pmd.c\n+++ b/drivers/compress/octeontx/otx_zip_pmd.c\n@@ -647,9 +647,5 @@ static struct rte_pci_driver octtx_zip_pmd = {\n RTE_PMD_REGISTER_PCI(COMPRESSDEV_NAME_ZIP_PMD, octtx_zip_pmd);\n RTE_PMD_REGISTER_PCI_TABLE(COMPRESSDEV_NAME_ZIP_PMD, pci_id_octtx_zipvf_table);\n \n-RTE_INIT(octtx_zip_init_log)\n-{\n-\tocttx_zip_logtype_driver = rte_log_register(\"pmd.compress.octeontx\");\n-\tif (octtx_zip_logtype_driver >= 0)\n-\t\trte_log_set_level(octtx_zip_logtype_driver, RTE_LOG_INFO);\n-}\n+RTE_LOG_REGISTER(octtx_zip_logtype_driver, \"pmd.compress.octeontx\",\n+\tRTE_LOG_INFO, RTE_LOGTYPE_PMD);\ndiff --git a/drivers/compress/zlib/zlib_pmd.c b/drivers/compress/zlib/zlib_pmd.c\nindex 19f9200..e2b2c16 100644\n--- a/drivers/compress/zlib/zlib_pmd.c\n+++ b/drivers/compress/zlib/zlib_pmd.c\n@@ -427,9 +427,5 @@ static struct rte_vdev_driver zlib_pmd_drv = {\n \n RTE_PMD_REGISTER_VDEV(COMPRESSDEV_NAME_ZLIB_PMD, zlib_pmd_drv);\n \n-RTE_INIT(zlib_init_log)\n-{\n-\tzlib_logtype_driver = rte_log_register(\"pmd.compress.zlib\");\n-\tif (zlib_logtype_driver >= 0)\n-\t\trte_log_set_level(zlib_logtype_driver, RTE_LOG_INFO);\n-}\n+RTE_LOG_REGISTER(zlib_logtype_driver, \"pmd.compress.zlib\",\n+\tRTE_LOG_INFO, RTE_LOGTYPE_PMD);\n",
    "prefixes": [
        "06/11"
    ]
}