get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 43102,
    "url": "http://patchwork.dpdk.org/api/patches/43102/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/ccaf5f7c79b1da882dafdcd057585bd1bd20b150.1531747666.git.anatoly.burakov@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<ccaf5f7c79b1da882dafdcd057585bd1bd20b150.1531747666.git.anatoly.burakov@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/ccaf5f7c79b1da882dafdcd057585bd1bd20b150.1531747666.git.anatoly.burakov@intel.com",
    "date": "2018-07-16T13:57:07",
    "name": "test: fix prefix discovery",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "be678363dcfeeb3d2501274ca454565bc9244a2e",
    "submitter": {
        "id": 4,
        "url": "http://patchwork.dpdk.org/api/people/4/?format=api",
        "name": "Anatoly Burakov",
        "email": "anatoly.burakov@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/ccaf5f7c79b1da882dafdcd057585bd1bd20b150.1531747666.git.anatoly.burakov@intel.com/mbox/",
    "series": [
        {
            "id": 595,
            "url": "http://patchwork.dpdk.org/api/series/595/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=595",
            "date": "2018-07-16T13:57:07",
            "name": "test: fix prefix discovery",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/595/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/43102/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/43102/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 01749271;\n\tMon, 16 Jul 2018 15:57:18 +0200 (CEST)",
            "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n\tby dpdk.org (Postfix) with ESMTP id 57F96235\n\tfor <dev@dpdk.org>; Mon, 16 Jul 2018 15:57:16 +0200 (CEST)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t16 Jul 2018 06:57:13 -0700",
            "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby orsmga003.jf.intel.com with ESMTP; 16 Jul 2018 06:57:08 -0700",
            "from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com\n\t[10.237.217.45])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\tw6GDv73f028347; Mon, 16 Jul 2018 14:57:07 +0100",
            "from sivswdev01.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev01.ir.intel.com with ESMTP id w6GDv7bI032375;\n\tMon, 16 Jul 2018 14:57:07 +0100",
            "(from aburakov@localhost)\n\tby sivswdev01.ir.intel.com with LOCAL id w6GDv73j032368;\n\tMon, 16 Jul 2018 14:57:07 +0100"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.51,361,1526367600\"; d=\"scan'208\";a=\"67323595\"",
        "From": "Anatoly Burakov <anatoly.burakov@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "reshma.pattan@intel.com",
        "Date": "Mon, 16 Jul 2018 14:57:07 +0100",
        "Message-Id": "<ccaf5f7c79b1da882dafdcd057585bd1bd20b150.1531747666.git.anatoly.burakov@intel.com>",
        "X-Mailer": "git-send-email 1.7.0.7",
        "Subject": "[dpdk-dev] [PATCH] test: fix prefix discovery",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Config file has moved, but the tests weren't updated to point to\nits new location. Update the code to find current prefix.\n\nFixes: adf1d867361c (\"eal: move runtime config file to new location\")\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n test/test/test_eal_flags.c    | 9 ++-------\n test/test/test_mp_secondary.c | 7 +------\n 2 files changed, 3 insertions(+), 13 deletions(-)",
    "diff": "diff --git a/test/test/test_eal_flags.c b/test/test/test_eal_flags.c\nindex f840ca50b..e0887af21 100644\n--- a/test/test/test_eal_flags.c\n+++ b/test/test/test_eal_flags.c\n@@ -234,13 +234,8 @@ get_current_prefix(char * prefix, int size)\n \tif (readlink(path, buf, sizeof(buf)) == -1)\n \t\treturn NULL;\n \n-\t/* get the basename */\n-\tsnprintf(buf, sizeof(buf), \"%s\", basename(buf));\n-\n-\t/* copy string all the way from second char up to start of _config */\n-\tsnprintf(prefix, size, \"%.*s\",\n-\t\t\t(int)(strnlen(buf, sizeof(buf)) - sizeof(\"_config\")),\n-\t\t\t&buf[1]);\n+\t/* get the prefix */\n+\tsnprintf(prefix, size, \"%s\", basename(dirname(buf)));\n \n \treturn prefix;\n }\ndiff --git a/test/test/test_mp_secondary.c b/test/test/test_mp_secondary.c\nindex cc46cf4de..8d22240cf 100644\n--- a/test/test/test_mp_secondary.c\n+++ b/test/test/test_mp_secondary.c\n@@ -65,12 +65,7 @@ get_current_prefix(char * prefix, int size)\n \t\treturn NULL;\n \n \t/* get the basename */\n-\tsnprintf(buf, sizeof(buf), \"%s\", basename(buf));\n-\n-\t/* copy string all the way from second char up to start of _config */\n-\tsnprintf(prefix, size, \"%.*s\",\n-\t\t\t(int)(strnlen(buf, sizeof(buf)) - sizeof(\"_config\")),\n-\t\t\t&buf[1]);\n+\tsnprintf(prefix, size, \"%s\", basename(dirname(buf)));\n \n \treturn prefix;\n }\n",
    "prefixes": []
}