Show a patch.

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

{
    "id": 412,
    "url": "https://patches.dpdk.org/api/patches/412/",
    "web_url": "https://patches.dpdk.org/patch/412/",
    "project": {
        "id": 1,
        "url": "https://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": "<1410961612-8571-16-git-send-email-david.marchand@6wind.com>",
    "date": "2014-09-17T13:46:47",
    "name": "[dpdk-dev,v3,15/20] e1000/base: add a raw macro for use by shared code",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "44d53e9c9582c7ffb27e28965e18ec8c2d24034d",
    "submitter": {
        "id": 3,
        "url": "https://patches.dpdk.org/api/people/3/",
        "name": "David Marchand",
        "email": "david.marchand@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/patch/412/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/412/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/412/checks/",
    "tags": {},
    "headers": {
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-Original-To": "patchwork@dpdk.org",
        "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=F39sPPMqjX2Ss/HKfOZBd9Uqf5vfvZD3Uc2t817Pr1Y=;\n\tb=PeyqpPuz5iIOrXLLXYJ37qaMBGFgy2uNgrs83aPD52cyHDhN929lQ1KAQREE4bYCPR\n\t4suAV4vmdGRmRQZAaytA3dEZXBpd99e/ATTSj6wIygkjvJ/QNyDqbxJKcarP+4TaqF1C\n\ti9IYmiY0htvOrkNmYfYSd4N2pYkWQQcoUrTw4P7fUfWBNkaUyltojunzO/UGsB/ur+lA\n\tD7nBLaD+2EFvh/1yLNfYolKzduHrDGde5eQ0/AJGrzDvAxmGj5RtH3/Twi1kkbsAHRQQ\n\tDW5TbwBKvX4tCQeEgh/hVmc9809opcaLcXcS4qwr+JHy/wiP8ulucmy0fjH88yu+tucm\n\twd0Q==",
        "In-Reply-To": "<1410961612-8571-1-git-send-email-david.marchand@6wind.com>",
        "Precedence": "list",
        "Date": "Wed, 17 Sep 2014 15:46:47 +0200",
        "References": "<1410961612-8571-1-git-send-email-david.marchand@6wind.com>",
        "X-Mailer": "git-send-email 1.7.10.4",
        "X-Gm-Message-State": "ALoCoQmFcah/b8GdOYmKApYiFE3GJmElcWyMtBgFXgMbPoHn0JutFtpEUxXwrZdy0vPUYwSVcdfy",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "To": "dev@dpdk.org",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-BeenThere": "dev@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id CA0F6B3B0;\n\tWed, 17 Sep 2014 15:41:51 +0200 (CEST)",
            "from mail-wg0-f49.google.com (mail-wg0-f49.google.com\n\t[74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 1D739B3B1\n\tfor <dev@dpdk.org>; Wed, 17 Sep 2014 15:41:46 +0200 (CEST)",
            "by mail-wg0-f49.google.com with SMTP id m15so1431899wgh.20\n\tfor <dev@dpdk.org>; Wed, 17 Sep 2014 06:47:27 -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.26 for <multiple recipients>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 17 Sep 2014 06:47:26 -0700 (PDT)"
        ],
        "From": "David Marchand <david.marchand@6wind.com>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Message-Id": "<1410961612-8571-16-git-send-email-david.marchand@6wind.com>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH v3 15/20] e1000/base: add a raw macro for use by\n\tshared code",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Delivered-To": "patchwork@dpdk.org",
        "X-Received": "by 10.180.211.172 with SMTP id nd12mr5752092wic.74.1410961647307;\n\tWed, 17 Sep 2014 06:47:27 -0700 (PDT)",
        "X-Mailman-Version": "2.1.15"
    },
    "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_e1000/e1000/e1000_osdep.h |    4 ++--\n lib/librte_pmd_e1000/e1000_logs.h        |    9 ++++++---\n 2 files changed, 8 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/lib/librte_pmd_e1000/e1000/e1000_osdep.h b/lib/librte_pmd_e1000/e1000/e1000_osdep.h\nindex b083a82..438641e 100644\n--- a/lib/librte_pmd_e1000/e1000/e1000_osdep.h\n+++ b/lib/librte_pmd_e1000/e1000/e1000_osdep.h\n@@ -52,8 +52,8 @@\n #define msec_delay(x) DELAY(1000*(x))\n #define msec_delay_irq(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_e1000/e1000_logs.h b/lib/librte_pmd_e1000/e1000_logs.h\nindex b6b3bb7..fe6e023 100644\n--- a/lib/librte_pmd_e1000/e1000_logs.h\n+++ b/lib/librte_pmd_e1000/e1000_logs.h\n@@ -63,10 +63,13 @@\n #endif\n \n #ifdef RTE_LIBRTE_E1000_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 /* _E1000_LOGS_H_ */\n",
    "prefixes": [
        "dpdk-dev",
        "v3",
        "15/20"
    ]
}