get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 29332,
    "url": "https://patches.dpdk.org/api/patches/29332/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1506606959-76230-7-git-send-email-jianfeng.tan@intel.com/",
    "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": "<1506606959-76230-7-git-send-email-jianfeng.tan@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1506606959-76230-7-git-send-email-jianfeng.tan@intel.com",
    "date": "2017-09-28T13:55:53",
    "name": "[dpdk-dev,v2,06/12] bus/vdev: normalize log type",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "f30eb450ed6436f6fa1bad88f44aa2e4705c0394",
    "submitter": {
        "id": 313,
        "url": "https://patches.dpdk.org/api/people/313/?format=api",
        "name": "Jianfeng Tan",
        "email": "jianfeng.tan@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1506606959-76230-7-git-send-email-jianfeng.tan@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/29332/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/29332/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 03C7E1B1FA;\n\tThu, 28 Sep 2017 15:55:01 +0200 (CEST)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id BD6B51B1ED\n\tfor <dev@dpdk.org>; Thu, 28 Sep 2017 15:54:53 +0200 (CEST)",
            "from fmsmga006.fm.intel.com ([10.253.24.20])\n\tby orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t28 Sep 2017 06:54:53 -0700",
            "from dpdk06.sh.intel.com ([10.67.110.196])\n\tby fmsmga006.fm.intel.com with ESMTP; 28 Sep 2017 06:54:51 -0700"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.42,450,1500966000\"; d=\"scan'208\";a=\"157117704\"",
        "From": "Jianfeng Tan <jianfeng.tan@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "bruce.richardson@intel.com, konstantin.ananyev@intel.com,\n\tpablo.de.lara.guarch@intel.com, thomas@monjalon.net,\n\tyliu@fridaylinux.org, maxime.coquelin@redhat.com, mtetsuyah@gmail.com,\n\tferruh.yigit@intel.com, Jianfeng Tan <jianfeng.tan@intel.com>",
        "Date": "Thu, 28 Sep 2017 13:55:53 +0000",
        "Message-Id": "<1506606959-76230-7-git-send-email-jianfeng.tan@intel.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1506606959-76230-1-git-send-email-jianfeng.tan@intel.com>",
        "References": "<1503654052-84730-1-git-send-email-jianfeng.tan@intel.com>\n\t<1506606959-76230-1-git-send-email-jianfeng.tan@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2 06/12] bus/vdev: normalize log type",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Use RTE_LOGTYPE_BUS for logging in vdev bus.\n\nSigned-off-by: Jianfeng Tan <jianfeng.tan@intel.com>\n---\n drivers/bus/vdev/vdev.c      |  9 +++++----\n drivers/bus/vdev/vdev_logs.h | 40 ++++++++++++++++++++++++++++++++++++++++\n 2 files changed, 45 insertions(+), 4 deletions(-)\n create mode 100644 drivers/bus/vdev/vdev_logs.h",
    "diff": "diff --git a/drivers/bus/vdev/vdev.c b/drivers/bus/vdev/vdev.c\nindex 8a1b00a..e0ba0da 100644\n--- a/drivers/bus/vdev/vdev.c\n+++ b/drivers/bus/vdev/vdev.c\n@@ -47,6 +47,7 @@\n #include <rte_errno.h>\n \n #include \"rte_vdev.h\"\n+#include \"vdev_logs.h\"\n \n /* Forward declare to access virtual bus name */\n static struct rte_bus rte_vdev_bus;\n@@ -103,7 +104,7 @@ vdev_probe_all_drivers(struct rte_vdev_device *dev)\n \n \tname = rte_vdev_device_name(dev);\n \n-\tRTE_LOG(DEBUG, EAL, \"Search driver %s to probe device %s\\n\", name,\n+\tVDEV_LOG(DEBUG, \"Search driver %s to probe device %s\\n\", name,\n \t\trte_vdev_device_name(dev));\n \n \tif (vdev_parse(name, &driver))\n@@ -189,7 +190,7 @@ rte_vdev_init(const char *name, const char *args)\n \tret = vdev_probe_all_drivers(dev);\n \tif (ret) {\n \t\tif (ret > 0)\n-\t\t\tRTE_LOG(ERR, EAL, \"no driver found for %s\\n\", name);\n+\t\t\tVDEV_LOG(ERR, \"no driver found for %s\\n\", name);\n \t\tgoto fail;\n \t}\n \n@@ -212,7 +213,7 @@ vdev_remove_driver(struct rte_vdev_device *dev)\n \tconst struct rte_vdev_driver *driver;\n \n \tif (!dev->device.driver) {\n-\t\tRTE_LOG(DEBUG, EAL, \"no driver attach to device %s\\n\", name);\n+\t\tVDEV_LOG(DEBUG, \"no driver attach to device %s\\n\", name);\n \t\treturn 1;\n \t}\n \n@@ -293,7 +294,7 @@ vdev_probe(void)\n \t\t\tcontinue;\n \n \t\tif (vdev_probe_all_drivers(dev)) {\n-\t\t\tRTE_LOG(ERR, EAL, \"failed to initialize %s device\\n\",\n+\t\t\tVDEV_LOG(ERR, \"failed to initialize %s device\\n\",\n \t\t\t\trte_vdev_device_name(dev));\n \t\t\treturn -1;\n \t\t}\ndiff --git a/drivers/bus/vdev/vdev_logs.h b/drivers/bus/vdev/vdev_logs.h\nnew file mode 100644\nindex 0000000..09ff973\n--- /dev/null\n+++ b/drivers/bus/vdev/vdev_logs.h\n@@ -0,0 +1,40 @@\n+/*-\n+ *   BSD LICENSE\n+ *\n+ *   Copyright(c) 2017 Intel Corporation. All rights reserved.\n+ *   All rights reserved.\n+ *\n+ *   Redistribution and use in source and binary forms, with or without\n+ *   modification, are permitted provided that the following conditions\n+ *   are met:\n+ *\n+ *     * Redistributions of source code must retain the above copyright\n+ *       notice, this list of conditions and the following disclaimer.\n+ *     * Redistributions in binary form must reproduce the above copyright\n+ *       notice, this list of conditions and the following disclaimer in\n+ *       the documentation and/or other materials provided with the\n+ *       distribution.\n+ *     * Neither the name of Intel Corporation nor the names of its\n+ *       contributors may be used to endorse or promote products derived\n+ *       from this software without specific prior written permission.\n+ *\n+ *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+ *   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+ *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+ *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+ *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+ *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+ *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+ *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+ *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+ *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+ *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+ */\n+\n+#ifndef _VDEV_LOGS_H_\n+#define _VDEV_LOGS_H_\n+\n+#define VDEV_LOG(level, fmt, args...) \\\n+\tRTE_LOG(level, BUS, \"%s(): \" fmt \"\\n\", __func__, ##args)\n+\n+#endif /* _VDEV_LOGS_H_ */\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "06/12"
    ]
}