get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 14026,
    "url": "http://patches.dpdk.org/api/patches/14026/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20160620124435.23d43f28@miho/",
    "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": "<20160620124435.23d43f28@miho>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20160620124435.23d43f28@miho",
    "date": "2016-06-20T10:44:35",
    "name": "[dpdk-dev] PATCH] mbuf: rte_pktmbuf_dump: don't add 0x when using %p in format strings",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "865178830bc3ab3ba17b5b831919a81ba6cef5a6",
    "submitter": {
        "id": 180,
        "url": "http://patches.dpdk.org/api/people/180/?format=api",
        "name": "Simon Kagstrom",
        "email": "simon.kagstrom@netinsight.net"
    },
    "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/20160620124435.23d43f28@miho/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/14026/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/14026/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 503B59AAD;\n\tMon, 20 Jun 2016 12:44:45 +0200 (CEST)",
            "from ernst.netinsight.se (ernst.netinsight.se [194.16.221.21])\n\tby dpdk.org (Postfix) with SMTP id 6E7A09AA7\n\tfor <dev@dpdk.org>; Mon, 20 Jun 2016 12:44:44 +0200 (CEST)",
            "from miho (unverified [10.100.1.152]) by ernst.netinsight.se\n\t(EMWAC SMTPRS 0.83) with SMTP id <B0033856665@ernst.netinsight.se>;\n\tMon, 20 Jun 2016 12:45:15 +0200"
        ],
        "Date": "Mon, 20 Jun 2016 12:44:35 +0200",
        "From": "Simon Kagstrom <simon.kagstrom@netinsight.net>",
        "To": "olivier.matz@6wind.com, dev@dpdk.org",
        "Message-ID": "<20160620124435.23d43f28@miho>",
        "X-Mailer": "Claws Mail 3.9.3 (GTK+ 2.24.27; x86_64-pc-linux-gnu)",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=US-ASCII",
        "Content-Transfer-Encoding": "7bit",
        "Subject": "[dpdk-dev] PATCH] mbuf: rte_pktmbuf_dump: don't add 0x when using\n\t%p in format strings",
        "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": "I.e., avoid dump messages with double 0x0x, e.g.,\n\n  dump mbuf at 0x0x7fac7b17c800, phys=17b17c880, buf_len=2176\n    pkt_len=2064, ol_flags=0, nb_segs=1, in_port=255\n    segment at 0x0x7fac7b17c800, data=0x0x7fac7b17c8f0, data_len=2064\n\nSigned-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>\n---\n lib/librte_mbuf/rte_mbuf.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/lib/librte_mbuf/rte_mbuf.c b/lib/librte_mbuf/rte_mbuf.c\nindex dc0467c..523e219 100644\n--- a/lib/librte_mbuf/rte_mbuf.c\n+++ b/lib/librte_mbuf/rte_mbuf.c\n@@ -218,7 +218,7 @@ rte_pktmbuf_dump(FILE *f, const struct rte_mbuf *m, unsigned dump_len)\n \n \t__rte_mbuf_sanity_check(m, 1);\n \n-\tfprintf(f, \"dump mbuf at 0x%p, phys=%\"PRIx64\", buf_len=%u\\n\",\n+\tfprintf(f, \"dump mbuf at %p, phys=%\"PRIx64\", buf_len=%u\\n\",\n \t       m, (uint64_t)m->buf_physaddr, (unsigned)m->buf_len);\n \tfprintf(f, \"  pkt_len=%\"PRIu32\", ol_flags=%\"PRIx64\", nb_segs=%u, \"\n \t       \"in_port=%u\\n\", m->pkt_len, m->ol_flags,\n@@ -228,7 +228,7 @@ rte_pktmbuf_dump(FILE *f, const struct rte_mbuf *m, unsigned dump_len)\n \twhile (m && nb_segs != 0) {\n \t\t__rte_mbuf_sanity_check(m, 0);\n \n-\t\tfprintf(f, \"  segment at 0x%p, data=0x%p, data_len=%u\\n\",\n+\t\tfprintf(f, \"  segment at %p, data=%p, data_len=%u\\n\",\n \t\t\tm, rte_pktmbuf_mtod(m, void *), (unsigned)m->data_len);\n \t\tlen = dump_len;\n \t\tif (len > m->data_len)\n",
    "prefixes": [
        "dpdk-dev"
    ]
}