Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/399/?format=api
http://patches.dpdk.org/api/patches/399/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1410961612-8571-3-git-send-email-david.marchand@6wind.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": "<1410961612-8571-3-git-send-email-david.marchand@6wind.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1410961612-8571-3-git-send-email-david.marchand@6wind.com", "date": "2014-09-17T13:46:34", "name": "[dpdk-dev,v3,02/20] ixgbe/base: add a raw macro for use by shared code", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "09c6b8dd9c08cafd5fe3db1c69658b0aa24d1ed2", "submitter": { "id": 3, "url": "http://patches.dpdk.org/api/people/3/?format=api", "name": "David Marchand", "email": "david.marchand@6wind.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1410961612-8571-3-git-send-email-david.marchand@6wind.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/399/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/399/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 16763B3A5;\n\tWed, 17 Sep 2014 15:41:24 +0200 (CEST)", "from mail-wg0-f43.google.com (mail-wg0-f43.google.com\n\t[74.125.82.43]) by dpdk.org (Postfix) with ESMTP id B8200B39B\n\tfor <dev@dpdk.org>; Wed, 17 Sep 2014 15:41:21 +0200 (CEST)", "by mail-wg0-f43.google.com with SMTP id x12so1410125wgg.26\n\tfor <dev@dpdk.org>; Wed, 17 Sep 2014 06:47:02 -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\tfa20sm5712872wic.1.2014.09.17.06.47.01 for <multiple recipients>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 17 Sep 2014 06:47:01 -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:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=2OeTnJcb0efjUsmBmmPlSvhLlQkQSBnN2F+tkwj/2ag=;\n\tb=PdfaaANaNvGVSvJnz9C38RMtXCzWHyO+bLL8UeQGZD+uaXhK4ecPYxwPZJ0IJRT9yW\n\tq3PbIldgyNm/H1dnfGVcLR6HiVbyve1bNn6kqO1XrveNU7Gn+mpIff2oMQMypZD3S8kw\n\ttvvcWU/oJHLHZDsr/8XJwqH/HhgRBRXWAOz9uO7QY77C1PiXABOFN1qDBu8GFHYMas7N\n\tYWc443r5zOLrDIxVrj0Ckerxo/c9yhfL2lCHI3iJvF5SQpPOcRO9PRYcg6SYnoA2jKes\n\tySHIgNrBrZNyqA4IoAwjRLUTgGsmHo5oLs/XN03zLuLAWRQfuurWMjFaqjTG3bOJgd5s\n\tmljw==", "X-Gm-Message-State": "ALoCoQkDxBIw+DE/6/md3CeQXzguDiKpfKz5k4JQMgTSX1NV6yndQM9lVRcCfQSaxtrKHNKaFZlj", "X-Received": "by 10.194.76.195 with SMTP id m3mr2680051wjw.136.1410961622534; \n\tWed, 17 Sep 2014 06:47:02 -0700 (PDT)", "From": "David Marchand <david.marchand@6wind.com>", "To": "dev@dpdk.org", "Date": "Wed, 17 Sep 2014 15:46:34 +0200", "Message-Id": "<1410961612-8571-3-git-send-email-david.marchand@6wind.com>", "X-Mailer": "git-send-email 1.7.10.4", "In-Reply-To": "<1410961612-8571-1-git-send-email-david.marchand@6wind.com>", "References": "<1410961612-8571-1-git-send-email-david.marchand@6wind.com>", "Subject": "[dpdk-dev] [PATCH v3 02/20] ixgbe/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>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "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>\nAcked-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n lib/librte_pmd_ixgbe/ixgbe/ixgbe_osdep.h | 4 ++--\n lib/librte_pmd_ixgbe/ixgbe_logs.h | 9 ++++++---\n 2 files changed, 8 insertions(+), 5 deletions(-)", "diff": "diff --git a/lib/librte_pmd_ixgbe/ixgbe/ixgbe_osdep.h b/lib/librte_pmd_ixgbe/ixgbe/ixgbe_osdep.h\nindex 2bf1a6d..ae9c280 100644\n--- a/lib/librte_pmd_ixgbe/ixgbe/ixgbe_osdep.h\n+++ b/lib/librte_pmd_ixgbe/ixgbe/ixgbe_osdep.h\n@@ -54,8 +54,8 @@\n #define usec_delay(x) DELAY(x)\n #define msec_delay(x) DELAY(1000*(x))\n \n-#define DEBUGFUNC(F) DEBUGOUT(F);\n-#define DEBUGOUT(S, args...) PMD_DRV_LOG(DEBUG, S, ##args)\n+#define DEBUGFUNC(F) DEBUGOUT(F \"\\n\");\n+#define DEBUGOUT(S, args...) PMD_DRV_LOG_RAW(DEBUG, S, ##args)\n #define DEBUGOUT1(S, args...) DEBUGOUT(S, ##args)\n #define DEBUGOUT2(S, args...) DEBUGOUT(S, ##args)\n #define DEBUGOUT3(S, args...) DEBUGOUT(S, ##args)\ndiff --git a/lib/librte_pmd_ixgbe/ixgbe_logs.h b/lib/librte_pmd_ixgbe/ixgbe_logs.h\nindex 9f0a684..4685c18 100644\n--- a/lib/librte_pmd_ixgbe/ixgbe_logs.h\n+++ b/lib/librte_pmd_ixgbe/ixgbe_logs.h\n@@ -65,10 +65,13 @@\n #endif\n \n #ifdef RTE_LIBRTE_IXGBE_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 /* _IXGBE_LOGS_H_ */\n", "prefixes": [ "dpdk-dev", "v3", "02/20" ] }{ "id": 399, "url": "