Show a patch.

GET /api/patches/281/
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 281,
    "url": "http://patches.dpdk.org/api/patches/281/",
    "web_url": "http://patches.dpdk.org/patch/281/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<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": "http://patches.dpdk.org/api/people/3/",
        "name": "David Marchand",
        "email": "david.marchand@6wind.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/patch/281/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/281/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/281/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<david.marchand@6wind.com>",
        "References": "<1409567080-27083-1-git-send-email-david.marchand@6wind.com>",
        "X-Mailman-Version": "2.1.15",
        "From": "David Marchand <david.marchand@6wind.com>",
        "X-List-Received-Date": "Mon, 01 Sep 2014 10:20:34 -0000",
        "X-BeenThere": "dev@dpdk.org",
        "Message-Id": "<1409567080-27083-9-git-send-email-david.marchand@6wind.com>",
        "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==",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-Received": "by 10.180.87.66 with SMTP id v2mr6058663wiz.28.1409567101155;\n\tMon, 01 Sep 2014 03:25:01 -0700 (PDT)",
        "X-Mailer": "git-send-email 1.7.10.4",
        "Precedence": "list",
        "X-Gm-Message-State": "ALoCoQlaBE05gX/P6Rhnh2b/+aRfFujle/oKe/5h9AhUhPsAtly4oTX7ufXdn0946uOdD3V2/Zcj",
        "Date": "Mon,  1 Sep 2014 12:24:31 +0200",
        "Subject": "[dpdk-dev] [PATCH v2 08/17] i40e/base: add a _RAW macro for use by\n\tshared code",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "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)"
        ],
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "In-Reply-To": "<1409567080-27083-1-git-send-email-david.marchand@6wind.com>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "To": "dev@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>\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"
    ]
}