get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 66450,
    "url": "http://patches.dpdk.org/api/patches/66450/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1583757743-375198-3-git-send-email-vladimir.medvedkin@intel.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": "<1583757743-375198-3-git-send-email-vladimir.medvedkin@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1583757743-375198-3-git-send-email-vladimir.medvedkin@intel.com",
    "date": "2020-03-09T12:42:21",
    "name": "[2/4] app/testfib: fix format string",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "6f5d123e5529120be6cd9c93136a8d40fb2ca4da",
    "submitter": {
        "id": 1216,
        "url": "http://patches.dpdk.org/api/people/1216/?format=api",
        "name": "Vladimir Medvedkin",
        "email": "vladimir.medvedkin@intel.com"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1583757743-375198-3-git-send-email-vladimir.medvedkin@intel.com/mbox/",
    "series": [
        {
            "id": 8846,
            "url": "http://patches.dpdk.org/api/series/8846/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8846",
            "date": "2020-03-09T12:42:19",
            "name": "app/testfib: testfib app various fixes",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/8846/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/66450/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/66450/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id C8D2DA052E;\n\tMon,  9 Mar 2020 13:42:52 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 05F661C07F;\n\tMon,  9 Mar 2020 13:42:38 +0100 (CET)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by dpdk.org (Postfix) with ESMTP id 78CEE1C028\n for <dev@dpdk.org>; Mon,  9 Mar 2020 13:42:34 +0100 (CET)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 09 Mar 2020 05:42:33 -0700",
            "from silpixa00400072.ir.intel.com ([10.237.222.213])\n by fmsmga004.fm.intel.com with ESMTP; 09 Mar 2020 05:42:32 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.70,533,1574150400\"; d=\"scan'208\";a=\"265243899\"",
        "From": "Vladimir Medvedkin <vladimir.medvedkin@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "vladimir.medvedkin@intel.com",
        "Date": "Mon,  9 Mar 2020 12:42:21 +0000",
        "Message-Id": "<1583757743-375198-3-git-send-email-vladimir.medvedkin@intel.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1583757743-375198-1-git-send-email-vladimir.medvedkin@intel.com>",
        "References": "<1583757743-375198-1-git-send-email-vladimir.medvedkin@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 2/4] app/testfib: fix format string",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Change format for uint64_t to to %\"PRIu64\" to make compiller happy\n\nFixes: 103809d032cd (\"app/test-fib: add test application for FIB\")\nCc: vladimir.medvedkin@intel.com\n\nSigned-off-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>\n---\n app/test-fib/main.c | 22 ++++++++++++----------\n 1 file changed, 12 insertions(+), 10 deletions(-)",
    "diff": "diff --git a/app/test-fib/main.c b/app/test-fib/main.c\nindex aa83f76..7fd3420 100644\n--- a/app/test-fib/main.c\n+++ b/app/test-fib/main.c\n@@ -790,7 +790,7 @@ dump_rt_4(struct rt_rule_4 *rt)\n \t}\n \n \tfor (i = 0; i < config.nb_routes; i++)\n-\t\tfprintf(f, NIPQUAD_FMT\"/%d %lu\\n\", NIPQUAD(rt[i].addr),\n+\t\tfprintf(f, NIPQUAD_FMT\"/%d %\"PRIu64\"\\n\", NIPQUAD(rt[i].addr),\n \t\t\trt[i].depth, rt[i].nh);\n \n \tfclose(f);\n@@ -858,7 +858,8 @@ run_v4(void)\n \t\t\t\treturn -ret;\n \t\t\t}\n \t\t}\n-\t\tprintf(\"AVG FIB add %lu\\n\", (rte_rdtsc_precise() - start) / j);\n+\t\tprintf(\"AVG FIB add %\"PRIu64\"\\n\",\n+\t\t\t(rte_rdtsc_precise() - start) / j);\n \t\ti += j;\n \t}\n \n@@ -885,7 +886,7 @@ run_v4(void)\n \t\t\t\t\treturn -ret;\n \t\t\t\t}\n \t\t\t}\n-\t\t\tprintf(\"AVG LPM add %lu\\n\",\n+\t\t\tprintf(\"AVG LPM add %\"PRIu64\"\\n\",\n \t\t\t\t(rte_rdtsc_precise() - start) / j);\n \t\t\ti += j;\n \t\t}\n@@ -939,7 +940,7 @@ run_v4(void)\n \t\tfor (j = 0; j < (config.nb_routes - i) / k; j++)\n \t\t\trte_fib_delete(fib, rt[i + j].addr, rt[i + j].depth);\n \n-\t\tprintf(\"AVG FIB delete %lu\\n\",\n+\t\tprintf(\"AVG FIB delete %\"PRIu64\"\\n\",\n \t\t\t(rte_rdtsc_precise() - start) / j);\n \t\ti += j;\n \t}\n@@ -951,7 +952,7 @@ run_v4(void)\n \t\t\t\trte_lpm_delete(lpm, rt[i + j].addr,\n \t\t\t\t\trt[i + j].depth);\n \n-\t\t\tprintf(\"AVG LPM delete %lu\\n\",\n+\t\t\tprintf(\"AVG LPM delete %\"PRIu64\"\\n\",\n \t\t\t\t(rte_rdtsc_precise() - start) / j);\n \t\t\ti += j;\n \t\t}\n@@ -973,7 +974,7 @@ dump_rt_6(struct rt_rule_6 *rt)\n \t}\n \n \tfor (i = 0; i < config.nb_routes; i++) {\n-\t\tfprintf(f, NIPQUAD6_FMT\"/%d %lu\\n\", NIPQUAD6(rt[i].addr),\n+\t\tfprintf(f, NIPQUAD6_FMT\"/%d %\"PRIu64\"\\n\", NIPQUAD6(rt[i].addr),\n \t\t\trt[i].depth, rt[i].nh);\n \n \t}\n@@ -1036,7 +1037,8 @@ run_v6(void)\n \t\t\t\treturn -ret;\n \t\t\t}\n \t\t}\n-\t\tprintf(\"AVG FIB add %lu\\n\", (rte_rdtsc_precise() - start) / j);\n+\t\tprintf(\"AVG FIB add %\"PRIu64\"\\n\",\n+\t\t\t(rte_rdtsc_precise() - start) / j);\n \t\ti += j;\n \t}\n \n@@ -1063,7 +1065,7 @@ run_v6(void)\n \t\t\t\t\treturn -ret;\n \t\t\t\t}\n \t\t\t}\n-\t\t\tprintf(\"AVG LPM add %lu\\n\",\n+\t\t\tprintf(\"AVG LPM add %\"PRIu64\"\\n\",\n \t\t\t\t(rte_rdtsc_precise() - start) / j);\n \t\t\ti += j;\n \t\t}\n@@ -1121,7 +1123,7 @@ run_v6(void)\n \t\tfor (j = 0; j < (config.nb_routes - i) / k; j++)\n \t\t\trte_fib6_delete(fib, rt[i + j].addr, rt[i + j].depth);\n \n-\t\tprintf(\"AVG FIB delete %lu\\n\",\n+\t\tprintf(\"AVG FIB delete %\"PRIu64\"\\n\",\n \t\t\t(rte_rdtsc_precise() - start) / j);\n \t\ti += j;\n \t}\n@@ -1133,7 +1135,7 @@ run_v6(void)\n \t\t\t\trte_lpm6_delete(lpm, rt[i + j].addr,\n \t\t\t\t\trt[i + j].depth);\n \n-\t\t\tprintf(\"AVG LPM delete %lu\\n\",\n+\t\t\tprintf(\"AVG LPM delete %\"PRIu64\"\\n\",\n \t\t\t\t(rte_rdtsc_precise() - start) / j);\n \t\t\ti += j;\n \t\t}\n",
    "prefixes": [
        "2/4"
    ]
}