Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/136605/?format=api
http://patches.dpdk.org/api/patches/136605/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1707774557-16012-5-git-send-email-roretzla@linux.microsoft.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": "<1707774557-16012-5-git-send-email-roretzla@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1707774557-16012-5-git-send-email-roretzla@linux.microsoft.com", "date": "2024-02-12T21:49:06", "name": "[04/15] cmdline: use GCC and MSVC common VA ARGS extension", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "08c11b42e0a8be33ed3695d4aae1b1da1fba7a96", "submitter": { "id": 2077, "url": "http://patches.dpdk.org/api/people/2077/?format=api", "name": "Tyler Retzlaff", "email": "roretzla@linux.microsoft.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/1707774557-16012-5-git-send-email-roretzla@linux.microsoft.com/mbox/", "series": [ { "id": 31079, "url": "http://patches.dpdk.org/api/series/31079/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31079", "date": "2024-02-12T21:49:02", "name": "use GCC/MSVC compatible __VA_ARGS__", "version": 1, "mbox": "http://patches.dpdk.org/series/31079/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/136605/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/136605/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id E44D143AFE;\n\tMon, 12 Feb 2024 22:49:38 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A28D340E54;\n\tMon, 12 Feb 2024 22:49:26 +0100 (CET)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 4B58F40E03\n for <dev@dpdk.org>; Mon, 12 Feb 2024 22:49:23 +0100 (CET)", "by linux.microsoft.com (Postfix, from userid 1086)\n id 6437820B2004; Mon, 12 Feb 2024 13:49:22 -0800 (PST)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 6437820B2004", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1707774562;\n bh=dJJMXcqf0zJRknUtoy3Mh6JgLX8ljgAVXZ1fFxDG5mk=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=XtVoa7NiEApHIwjgb3XlCBF6SdDBgwCYIsTPjyv7rgp3BvIzvXBIl2XXtayGkcWz0\n temYCd6EYfKXPSOFb0c1i3C5fhwvWvkKGJ2OzrM7VJxWB0CZC627sHPmLfieuB0qI5\n Zpxyh22yvOQfJ8divlNwrJjigGx9hRFXqTYgKIkg=", "From": "Tyler Retzlaff <roretzla@linux.microsoft.com>", "To": "dev@dpdk.org", "Cc": "Anatoly Burakov <anatoly.burakov@intel.com>,\n Ashish Gupta <ashish.gupta@marvell.com>, Chenbo Xia <chenbox@nvidia.com>,\n Cristian Dumitrescu <cristian.dumitrescu@intel.com>,\n David Hunt <david.hunt@intel.com>, Fan Zhang <fanzhang.oss@gmail.com>,\n Hemant Agrawal <hemant.agrawal@nxp.com>,\n Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>,\n Jasvinder Singh <jasvinder.singh@intel.com>,\n Jerin Jacob <jerinj@marvell.com>,\n Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>,\n Maxime Coquelin <maxime.coquelin@redhat.com>,\n Reshma Pattan <reshma.pattan@intel.com>,\n Sachin Saxena <sachin.saxena@nxp.com>,\n Sivaprasad Tummala <sivaprasad.tummala@amd.com>,\n Srikanth Yalavarthi <syalavarthi@marvell.com>,\n Stephen Hemminger <stephen@networkplumber.org>,\n Sunil Kumar Kori <skori@marvell.com>,\n Tyler Retzlaff <roretzla@linux.microsoft.com>", "Subject": "[PATCH 04/15] cmdline: use GCC and MSVC common VA ARGS extension", "Date": "Mon, 12 Feb 2024 13:49:06 -0800", "Message-Id": "<1707774557-16012-5-git-send-email-roretzla@linux.microsoft.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1707774557-16012-1-git-send-email-roretzla@linux.microsoft.com>", "References": "<1707774557-16012-1-git-send-email-roretzla@linux.microsoft.com>", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "Use ... and forward with __VA_ARGS__ instead of args... and args.\nNeither mechanism is conformant with the standard but the former works\nwith both GCC and MSVC.\n\nFix checkpatches warning about style while(0) -> while (0)\n\nSigned-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\n---\n lib/cmdline/cmdline_parse.c | 2 +-\n lib/cmdline/cmdline_parse_num.c | 4 ++--\n 2 files changed, 3 insertions(+), 3 deletions(-)", "diff": "diff --git a/lib/cmdline/cmdline_parse.c b/lib/cmdline/cmdline_parse.c\nindex b6d6dac..76a212d 100644\n--- a/lib/cmdline/cmdline_parse.c\n+++ b/lib/cmdline/cmdline_parse.c\n@@ -16,7 +16,7 @@\n #ifdef RTE_LIBRTE_CMDLINE_DEBUG\n #define debug_printf printf\n #else\n-#define debug_printf(args...) do {} while(0)\n+#define debug_printf(...) do {} while (0)\n #endif\n \n #define CMDLINE_BUFFER_SIZE 64\ndiff --git a/lib/cmdline/cmdline_parse_num.c b/lib/cmdline/cmdline_parse_num.c\nindex 820af07..e849878 100644\n--- a/lib/cmdline/cmdline_parse_num.c\n+++ b/lib/cmdline/cmdline_parse_num.c\n@@ -14,9 +14,9 @@\n #include \"cmdline_parse_num.h\"\n \n #ifdef RTE_LIBRTE_CMDLINE_DEBUG\n-#define debug_printf(args...) printf(args)\n+#define debug_printf(...) printf(__VA_ARGS__)\n #else\n-#define debug_printf(args...) do {} while(0)\n+#define debug_printf(...) do {} while (0)\n #endif\n \n struct cmdline_token_ops cmdline_token_num_ops = {\n", "prefixes": [ "04/15" ] }{ "id": 136605, "url": "