Show a patch.

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

{
    "id": 286,
    "url": "http://patches.dpdk.org/api/patches/286/",
    "web_url": "http://patches.dpdk.org/patch/286/",
    "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-14-git-send-email-david.marchand@6wind.com>",
    "date": "2014-09-01T10:24:36",
    "name": "[dpdk-dev,v2,13/17] e1000/base: add a _RAW macro for use by shared code",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "44d53e9c9582c7ffb27e28965e18ec8c2d24034d",
    "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/286/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/286/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/286/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:44 -0000",
        "X-BeenThere": "dev@dpdk.org",
        "Message-Id": "<1409567080-27083-14-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=duNt74YZ0e0LjV92C4Z0SKvmxQHVwtqo4LXAC5d+2CM=;\n\tb=jSK3jCS/UFFECsdsSwUe4CcKS/yvd4LvS699eSUOYg4POUeOB9bynwlNLvuwv29cuq\n\tqslKsG8nIaUyrCjEvsa2KEZWdenF7SjZbPuI6ozUZEcVG6Pkc04pfNF6hcxHEJxormId\n\tNfMnKUHTq77ZetPkH2NOvEALJaeBV9Gsl8j49lK8WYNcxh+PsN5JKjAVcZuQSTaCT8Ca\n\tYb6XTf6eDY6w6FG2qRn5NFET6reHx3F9gwfhDamJmfrjKjXOk5PZHYYcB0NBgZAvofuP\n\to1Aia1fUHN9q+74JtfLBEEYw382zaqZ2sJHabvQMSJDWLN4u01ys5azS7uRYsjbsAQQH\n\tOq1g==",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-Received": "by 10.180.212.105 with SMTP id nj9mr14799517wic.51.1409567111754;\n\tMon, 01 Sep 2014 03:25:11 -0700 (PDT)",
        "X-Mailer": "git-send-email 1.7.10.4",
        "Precedence": "list",
        "X-Gm-Message-State": "ALoCoQlr3LfvVQ9EhD4Qp0pLE5P8xy+loLxTdvUzQBAVp9EjPYWu2PLRwqwEZw4Khb5VA1fMEkaI",
        "Date": "Mon,  1 Sep 2014 12:24:36 +0200",
        "Subject": "[dpdk-dev] [PATCH v2 13/17] e1000/base: add a _RAW macro for use by\n\tshared code",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "Received": [
            "from mail-we0-f176.google.com (mail-we0-f176.google.com\n\t[74.125.82.176]) by dpdk.org (Postfix) with ESMTP id CFF84B390\n\tfor <dev@dpdk.org>; Mon,  1 Sep 2014 12:20:44 +0200 (CEST)",
            "by mail-we0-f176.google.com with SMTP id q59so5209041wes.35\n\tfor <dev@dpdk.org>; Mon, 01 Sep 2014 03:25:11 -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.25.10 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:11 -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_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",
        "v2",
        "13/17"
    ]
}