Show a patch.

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

{
    "id": 375,
    "url": "https://patches.dpdk.org/api/patches/375/?format=api",
    "web_url": "https://patches.dpdk.org/patch/375/",
    "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"
    },
    "msgid": "<1410683686-12389-1-git-send-email-mhall@mhcomputing.net>",
    "date": "2014-09-14T08:34:46",
    "name": "[dpdk-dev] librte_log: add function to retrieve log_level",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "d0e940b8838a69b4e321cc2bdff8ca4abdd4d111",
    "submitter": {
        "id": 37,
        "url": "https://patches.dpdk.org/api/people/37/?format=api",
        "name": "Matthew Hall",
        "email": "mhall@mhcomputing.net"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/patch/375/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/375/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/375/checks/",
    "tags": {},
    "headers": {
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "To": "dev@dpdk.org",
        "Date": "Sun, 14 Sep 2014 01:34:46 -0700",
        "Precedence": "list",
        "Message-Id": "<1410683686-12389-1-git-send-email-mhall@mhcomputing.net>",
        "X-Mailer": "git-send-email 1.9.1",
        "From": "Matthew Hall <mhall@mhcomputing.net>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-BeenThere": "dev@dpdk.org",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Subject": "[dpdk-dev] [PATCH] librte_log: add function to retrieve log_level",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id BBA425901;\n\tSun, 14 Sep 2014 10:29:37 +0200 (CEST)",
            "from mail.mhcomputing.net (master.mhcomputing.net [74.208.46.186])\n\tby dpdk.org (Postfix) with ESMTP id 7AB2A58E0\n\tfor <dev@dpdk.org>; Sun, 14 Sep 2014 10:29:35 +0200 (CEST)",
            "from syslog-sdn.mhcomputing.net\n\t(99-34-229-174.lightspeed.sntcca.sbcglobal.net [99.34.229.174])\n\tby mail.mhcomputing.net (Postfix) with ESMTPSA id CAB1480C764;\n\tSun, 14 Sep 2014 01:34:38 -0700 (PDT)"
        ],
        "X-Mailman-Version": "2.1.15",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>"
    },
    "content": "Signed-off-by: Matthew Hall <mhall@mhcomputing.net>\n---\n lib/librte_eal/common/eal_common_log.c  | 7 +++++++\n lib/librte_eal/common/include/rte_log.h | 6 ++++++\n 2 files changed, 13 insertions(+)",
    "diff": "diff --git a/lib/librte_eal/common/eal_common_log.c b/lib/librte_eal/common/eal_common_log.c\nindex e4df0b9..d979f28 100644\n--- a/lib/librte_eal/common/eal_common_log.c\n+++ b/lib/librte_eal/common/eal_common_log.c\n@@ -176,6 +176,13 @@ rte_set_log_level(uint32_t level)\n \trte_logs.level = (uint32_t)level;\n }\n \n+/* Get global log level */\n+uint32_t\n+rte_get_log_level()\n+{\n+\treturn rte_logs.level;\n+}\n+\n /* Set global log type */\n void\n rte_set_log_type(uint32_t type, int enable)\ndiff --git a/lib/librte_eal/common/include/rte_log.h b/lib/librte_eal/common/include/rte_log.h\nindex 565415a..7f1c2f9 100644\n--- a/lib/librte_eal/common/include/rte_log.h\n+++ b/lib/librte_eal/common/include/rte_log.h\n@@ -130,6 +130,12 @@ int rte_openlog_stream(FILE *f);\n void rte_set_log_level(uint32_t level);\n \n /**\n+ * Get the global log level.\n+ *\n+ */\n+uint32_t rte_get_log_level(void);\n+\n+/**\n  * Enable or disable the log type.\n  *\n  * @param type\n",
    "prefixes": [
        "dpdk-dev"
    ]
}