Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/65608/?format=api
http://patches.dpdk.org/api/patches/65608/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200206064426.45697-2-dmitry.kozliuk@gmail.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": "<20200206064426.45697-2-dmitry.kozliuk@gmail.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200206064426.45697-2-dmitry.kozliuk@gmail.com", "date": "2020-02-06T06:44:20", "name": "[v2,1/7] eal: introduce portable format attribute", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "af51ad837ae62df47915fe7203a7261f6b8a42a3", "submitter": { "id": 1581, "url": "http://patches.dpdk.org/api/people/1581/?format=api", "name": "Dmitry Kozlyuk", "email": "dmitry.kozliuk@gmail.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/20200206064426.45697-2-dmitry.kozliuk@gmail.com/mbox/", "series": [ { "id": 8442, "url": "http://patches.dpdk.org/api/series/8442/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8442", "date": "2020-02-06T06:44:19", "name": "MinGW-w64 support", "version": 2, "mbox": "http://patches.dpdk.org/series/8442/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/65608/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/65608/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 6AF07A04FA;\n\tThu, 6 Feb 2020 07:44:49 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 369911C001;\n\tThu, 6 Feb 2020 07:44:42 +0100 (CET)", "from mail-lf1-f65.google.com (mail-lf1-f65.google.com\n [209.85.167.65]) by dpdk.org (Postfix) with ESMTP id 9F5F61BFAA\n for <dev@dpdk.org>; Thu, 6 Feb 2020 07:44:39 +0100 (CET)", "by mail-lf1-f65.google.com with SMTP id n25so3292095lfl.0\n for <dev@dpdk.org>; Wed, 05 Feb 2020 22:44:39 -0800 (PST)", "from localhost.localdomain (broadband-37-110-65-23.ip.moscow.rt.ru.\n [37.110.65.23])\n by smtp.googlemail.com with ESMTPSA id o19sm939669lji.54.2020.02.05.22.44.38\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 05 Feb 2020 22:44:38 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=l213dkCU/FdwVGhbbD3agoLOcLpWMuN2wM7qnDC+fVM=;\n b=nJ/6pMCyv+CrT/+WZJCdTNIkl7e+q5s+FYQxTSytZ0z9rrDtdcoZ5y1Ss9jpyP/XkL\n FsdA74wT2vDBaAqYkFioCp+mwCf8DIdJn7tmKMu4Ai8TGCjkcu+buWGip6vLHFebtX6X\n mG9v4Xy83u7pkFf4PE4IkoqcSo81CpvHsBEE6uWxce0IzpCTLs0cukfZq5hue2fo/vtk\n 2sICcW+s0gJVoKYJTQ6no6esi4LTP6fuj4NLXUbfBnHGlMkcq3E+gn0MkErtqye9QSy6\n dwEx3Q9oXGJ+wfADUNAmqR5wlIGcK3xl84opOxsAbO1tkE2s9CKguduQVsK9cDySHuxU\n WjUg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=l213dkCU/FdwVGhbbD3agoLOcLpWMuN2wM7qnDC+fVM=;\n b=q/3X8arrcdL4+peSKyCj57z4GiPDjxt1hGls7r0j3itjQpSGcgF6vm+L072+Lqko2j\n 9lk1s/es2WZqignlfj6tu7BK24ZPfVndeOweA9aUIRbfaQDvWWjWLpSgWO/b8Xth1ftU\n +sAbxVQvBQuyXDMfwPsJK7GhBEiCl8sIkFFK9PqQBJFTEQj9HqKNX7Hp47Ae0ObzLNet\n FUQHl41NaiDoknzSqG4lfiMc67aPkqUM8AKeGcIK+BIAVTnwByTY6034RJUl5HHRGmRk\n 2xOvi+9o6kUBTTxpNDKCyYkZRGxaEsyQqiz53PGJR8sGw5BPKA/Cq4x85EopcS1JNuIH\n /Gjw==", "X-Gm-Message-State": "APjAAAXp2/GdxAeTtMTpLZ6VFC5OdL/ZkLSktzV8K3LQOZ46kdUVwcDX\n QbX6MDP5vAbK2XGBhR5J+gB8mosljSU=", "X-Google-Smtp-Source": "\n APXvYqz2vcFgEf6XI8R6VlMh6OZGm/TMhbEiWlV7PMa5gLgik/ssp77Exr1wtsXcLmw3bYTaeA8U7Q==", "X-Received": "by 2002:ac2:482c:: with SMTP id 12mr916987lft.163.1580971478993;\n Wed, 05 Feb 2020 22:44:38 -0800 (PST)", "From": "Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>", "To": "dev@dpdk.org", "Cc": "Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>", "Date": "Thu, 6 Feb 2020 09:44:20 +0300", "Message-Id": "<20200206064426.45697-2-dmitry.kozliuk@gmail.com>", "X-Mailer": "git-send-email 2.25.0", "In-Reply-To": "<20200206064426.45697-1-dmitry.kozliuk@gmail.com>", "References": "<20200206064426.45697-1-dmitry.kozliuk@gmail.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v2 1/7] eal: introduce portable format attribute", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "When using __attribute__((format(...)) on functions, GCC on Windows\nassumes MS-specific format string by default, even if the underlying\nstdio implementation is ANSI-compliant (either MS Unicersal CRT\nor MinGW implementation). Wrap attribute into a macro that forces\nGNU-specific format string when using GCC.\n\nSigned-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>\n---\n lib/librte_eal/common/include/rte_common.h | 15 +++++++++++++++\n 1 file changed, 15 insertions(+)", "diff": "diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/common/include/rte_common.h\nindex 4b5f3a31f..2f086bb9c 100644\n--- a/lib/librte_eal/common/include/rte_common.h\n+++ b/lib/librte_eal/common/include/rte_common.h\n@@ -89,6 +89,21 @@ typedef uint16_t unaligned_uint16_t;\n */\n #define RTE_SET_USED(x) (void)(x)\n \n+/**\n+ * Check format string and its arguments at compile-time.\n+ *\n+ * GCC on Windows assumes MS-specific format string by default,\n+ * even if the underlying stdio implementation is ANSI-compliant,\n+ * so this must be overridden.\n+ */\n+#if defined(RTE_TOOLCHAIN_GCC)\n+#define __rte_format(archetype, format_index, first_arg) \\\n+\t__attribute__((format(gnu_##archetype, format_index, first_arg)))\n+#else\n+#define __rte_format(archetype, format_index, first_arg) \\\n+\t__attribute__((format(archetype, format_index, first_arg)))\n+#endif\n+\n #define RTE_PRIORITY_LOG 101\n #define RTE_PRIORITY_BUS 110\n #define RTE_PRIORITY_CLASS 120\n", "prefixes": [ "v2", "1/7" ] }{ "id": 65608, "url": "