Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/281/?format=api
https://patches.dpdk.org/api/patches/281/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1409567080-27083-9-git-send-email-david.marchand@6wind.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": "<1409567080-27083-9-git-send-email-david.marchand@6wind.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1409567080-27083-9-git-send-email-david.marchand@6wind.com", "date": "2014-09-01T10:24:31", "name": "[dpdk-dev,v2,08/17] i40e/base: add a _RAW macro for use by shared code", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "a70066b97d3e2991e2d37cf0e6844a6a95113cb3", "submitter": { "id": 3, "url": "https://patches.dpdk.org/api/people/3/?format=api", "name": "David Marchand", "email": "david.marchand@6wind.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1409567080-27083-9-git-send-email-david.marchand@6wind.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/281/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/281/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<david.marchand@6wind.com>", "Received": [ "from mail-we0-f178.google.com (mail-we0-f178.google.com\n\t[74.125.82.178]) by dpdk.org (Postfix) with ESMTP id 3D875B3C9\n\tfor <dev@dpdk.org>; Mon, 1 Sep 2014 12:20:34 +0200 (CEST)", "by mail-we0-f178.google.com with SMTP id u57so5171552wes.23\n\tfor <dev@dpdk.org>; Mon, 01 Sep 2014 03:25:01 -0700 (PDT)", "from alcyon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net.\n\t[82.239.227.177]) by mx.google.com with ESMTPSA id\n\tlm18sm24287018wic.22.2014.09.01.03.24.59 for <dev@dpdk.org>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 01 Sep 2014 03:25:00 -0700 (PDT)" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=gwA8vsT1TTgzoWJiU4y/b61oNly4itlDptotES2IdNA=;\n\tb=RvIJQdKk13VVZR8X2Za1j17x/ogQIZsaJggUkWk6kjALDTQcU39Aep1yNoGwqxYoiM\n\t5ELCZgyo6yBLGMwevQzuVZx84chG7UwqFvhH3BVfgSYclBUM/+MaCmfnDCWkk6s8Exo9\n\tV7DexUu8HQBnx1XKLhKgCzMcqcEZVNLdmwvb+Q4+fIIUqBdmo14DrMkWv8c0tlMEug21\n\tYyHQWpS1kUrBgEP3BiLi/Y0IP4AMukRengpFQYgpEgFHl5Dw4hCUGw0NTlLjhmOWgHFA\n\t20ln3mO/VGGdNIf0Y0R77N9iMUx/GY9bSitUA5FPRWfr+yxvlic362fulAHaw3vUlCQt\n\tBqjA==", "X-Gm-Message-State": "ALoCoQlaBE05gX/P6Rhnh2b/+aRfFujle/oKe/5h9AhUhPsAtly4oTX7ufXdn0946uOdD3V2/Zcj", "X-Received": "by 10.180.87.66 with SMTP id v2mr6058663wiz.28.1409567101155;\n\tMon, 01 Sep 2014 03:25:01 -0700 (PDT)", "From": "David Marchand <david.marchand@6wind.com>", "To": "dev@dpdk.org", "Date": "Mon, 1 Sep 2014 12:24:31 +0200", "Message-Id": "<1409567080-27083-9-git-send-email-david.marchand@6wind.com>", "X-Mailer": "git-send-email 1.7.10.4", "In-Reply-To": "<1409567080-27083-1-git-send-email-david.marchand@6wind.com>", "References": "<1409567080-27083-1-git-send-email-david.marchand@6wind.com>", "Subject": "[dpdk-dev] [PATCH v2 08/17] i40e/base: add a _RAW macro for use by\n\tshared code", "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>", "X-List-Received-Date": "Mon, 01 Sep 2014 10:20:34 -0000" }, "content": "Since shared code always add a trailing \\n, add a PMD_DRV_LOG_RAW macro that\nwill not add one.\n\nSigned-off-by: David Marchand <david.marchand@6wind.com>\n---\n lib/librte_pmd_i40e/i40e/i40e_osdep.h | 8 ++++----\n lib/librte_pmd_i40e/i40e_logs.h | 9 ++++++---\n 2 files changed, 10 insertions(+), 7 deletions(-)", "diff": "diff --git a/lib/librte_pmd_i40e/i40e/i40e_osdep.h b/lib/librte_pmd_i40e/i40e/i40e_osdep.h\nindex 0ed4b65..de71b0d 100644\n--- a/lib/librte_pmd_i40e/i40e/i40e_osdep.h\n+++ b/lib/librte_pmd_i40e/i40e/i40e_osdep.h\n@@ -100,10 +100,10 @@ typedef enum i40e_status_code i40e_status;\n #define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f))\n #define ASSERT(x) if(!(x)) rte_panic(\"IXGBE: x\")\n \n-#define DEBUGOUT(S) PMD_DRV_LOG(DEBUG, S)\n-#define DEBUGOUT1(S, A...) PMD_DRV_LOG(DEBUG, S, ##A)\n+#define DEBUGOUT(S) PMD_DRV_LOG_RAW(DEBUG, S)\n+#define DEBUGOUT1(S, A...) PMD_DRV_LOG_RAW(DEBUG, S, ##A)\n \n-#define DEBUGFUNC(F) DEBUGOUT(F)\n+#define DEBUGFUNC(F) DEBUGOUT(F \"\\n\")\n #define DEBUGOUT2 DEBUGOUT1\n #define DEBUGOUT3 DEBUGOUT2\n #define DEBUGOUT6 DEBUGOUT3\n@@ -112,7 +112,7 @@ typedef enum i40e_status_code i40e_status;\n #define i40e_debug(h, m, s, ...) \\\n do { \\\n \tif (((m) & (h)->debug_mask)) \\\n-\t\tPMD_DRV_LOG(DEBUG, \"i40e %02x.%x \" s, \\\n+\t\tPMD_DRV_LOG_RAW(DEBUG, \"i40e %02x.%x \" s, \\\n \t\t\t(h)->bus.device, (h)->bus.func, \\\n \t\t\t\t\t##__VA_ARGS__); \\\n } while (0)\ndiff --git a/lib/librte_pmd_i40e/i40e_logs.h b/lib/librte_pmd_i40e/i40e_logs.h\nindex f991dd2..043ecba 100644\n--- a/lib/librte_pmd_i40e/i40e_logs.h\n+++ b/lib/librte_pmd_i40e/i40e_logs.h\n@@ -65,10 +65,13 @@\n #endif\n \n #ifdef RTE_LIBRTE_I40E_DEBUG_DRIVER\n-#define PMD_DRV_LOG(level, fmt, args...) \\\n-\tRTE_LOG(level, PMD, \"%s(): \" fmt \"\\n\", __func__, ## args)\n+#define PMD_DRV_LOG_RAW(level, fmt, args...) \\\n+\tRTE_LOG(level, PMD, \"%s(): \" fmt, __func__, ## args)\n #else\n-#define PMD_DRV_LOG(level, fmt, args...) do { } while(0)\n+#define PMD_DRV_LOG_RAW(level, fmt, args...) do { } while (0)\n #endif\n \n+#define PMD_DRV_LOG(level, fmt, args...) \\\n+\tPMD_DRV_LOG_RAW(level, fmt \"\\n\", ## args)\n+\n #endif /* _I40E_LOGS_H_ */\n", "prefixes": [ "dpdk-dev", "v2", "08/17" ] }{ "id": 281, "url": "