Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/375/?format=api
http://patches.dpdk.org/api/patches/375/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1410683686-12389-1-git-send-email-mhall@mhcomputing.net/", "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": "<1410683686-12389-1-git-send-email-mhall@mhcomputing.net>", "list_archive_url": "https://inbox.dpdk.org/dev/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": "http://patches.dpdk.org/api/people/37/?format=api", "name": "Matthew Hall", "email": "mhall@mhcomputing.net" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1410683686-12389-1-git-send-email-mhall@mhcomputing.net/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/375/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/375/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 [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)" ], "From": "Matthew Hall <mhall@mhcomputing.net>", "To": "dev@dpdk.org", "Date": "Sun, 14 Sep 2014 01:34:46 -0700", "Message-Id": "<1410683686-12389-1-git-send-email-mhall@mhcomputing.net>", "X-Mailer": "git-send-email 1.9.1", "Subject": "[dpdk-dev] [PATCH] librte_log: add function to retrieve log_level", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <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": "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" ] }{ "id": 375, "url": "