get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 47244,
    "url": "http://patches.dpdk.org/api/patches/47244/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20181023135751.21536-1-vipin.varghese@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": "<20181023135751.21536-1-vipin.varghese@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20181023135751.21536-1-vipin.varghese@intel.com",
    "date": "2018-10-23T13:57:43",
    "name": "[v1,1/9] app/procinfo: add usage for new debug",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "ce15d803dc59b32a381588e6d57f5c20c2eaf811",
    "submitter": {
        "id": 882,
        "url": "http://patches.dpdk.org/api/people/882/?format=api",
        "name": "Varghese, Vipin",
        "email": "vipin.varghese@intel.com"
    },
    "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/20181023135751.21536-1-vipin.varghese@intel.com/mbox/",
    "series": [
        {
            "id": 2036,
            "url": "http://patches.dpdk.org/api/series/2036/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=2036",
            "date": "2018-10-23T13:57:43",
            "name": "[v1,1/9] app/procinfo: add usage for new debug",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/2036/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/47244/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/47244/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 5FB7E1B4F6;\n\tTue, 23 Oct 2018 16:01:45 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 0D2381B4F5\n\tfor <dev@dpdk.org>; Tue, 23 Oct 2018 16:01:42 +0200 (CEST)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n\tby fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t23 Oct 2018 07:01:33 -0700",
            "from unknown (HELO saesrv02-S2600CWR.intel.com) ([10.224.122.203])\n\tby fmsmga008.fm.intel.com with ESMTP; 23 Oct 2018 07:01:31 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.54,416,1534834800\"; d=\"scan'208\";a=\"80934524\"",
        "From": "Vipin Varghese <vipin.varghese@intel.com>",
        "To": "dev@dpdk.org,\n\tmaryam.tahhan@intel.com,\n\treshma.pattan@intel.com",
        "Cc": "amol.patel@intel.com, sivaprasad.tummala@intel.com,\n\tstephen1.byrne@intel.com, michael.j.glynn@intel.com,\n\tVipin Varghese <vipin.varghese@intel.com>",
        "Date": "Tue, 23 Oct 2018 19:27:43 +0530",
        "Message-Id": "<20181023135751.21536-1-vipin.varghese@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[dpdk-dev] [PATCH v1 1/9] app/procinfo: add usage for new debug",
        "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": "Update the file with MACRO for stats border, usage text information\nand string comparision.\n\nSigned-off-by: Vipin Varghese <vipin.varghese@intel.com>\n---\n app/proc-info/main.c | 16 +++++++++++++++-\n 1 file changed, 15 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/app/proc-info/main.c b/app/proc-info/main.c\nindex c20effa4f..92854f5ba 100644\n--- a/app/proc-info/main.c\n+++ b/app/proc-info/main.c\n@@ -36,6 +36,10 @@\n \n #define MAX_STRING_LEN 256\n \n+#define STATS_BDR_FMT \"========================================\"\n+#define STATS_BDR_STR(w, s) printf(\"%.*s%s%.*s\\n\", w, \\\n+\tSTATS_BDR_FMT, s, w, STATS_BDR_FMT)\n+\n /**< mask of enabled ports */\n static uint32_t enabled_port_mask;\n /**< Enable stats. */\n@@ -83,7 +87,12 @@ proc_info_usage(const char *prgname)\n \t\t\"  --stats-reset: to reset port statistics\\n\"\n \t\t\"  --xstats-reset: to reset port extended statistics\\n\"\n \t\t\"  --collectd-format: to print statistics to STDOUT in expected by collectd format\\n\"\n-\t\t\"  --host-id STRING: host id used to identify the system process is running on\\n\",\n+\t\t\"  --host-id STRING: host id used to identify the system process is running on\\n\"\n+\t\t\"  --dbg-port to display information for all available ports\\n\"\n+\t\t\"  --dbg-tm to display information for traffic manager\\n\"\n+\t\t\"  --dbg-crypto to display information for crypto\\n\"\n+\t\t\"  --dbg-ring[=name] to display information for ring\\n\"\n+\t\t\"  --dbg-mempool[=name] to display information for mempool\\n\",\n \t\tprgname);\n }\n \n@@ -190,6 +199,11 @@ proc_info_parse_args(int argc, char **argv)\n \t\t{\"collectd-format\", 0, NULL, 0},\n \t\t{\"xstats-ids\", 1, NULL, 1},\n \t\t{\"host-id\", 0, NULL, 0},\n+\t\t{\"dbg-port\", 0, NULL, 0},\n+\t\t{\"dbg-tm\", 0, NULL, 0},\n+\t\t{\"dbg-crypto\", 0, NULL, 0},\n+\t\t{\"dbg-ring\", optional_argument, NULL, 0},\n+\t\t{\"dbg-mempool\", optional_argument, NULL, 0},\n \t\t{NULL, 0, 0, 0}\n \t};\n \n",
    "prefixes": [
        "v1",
        "1/9"
    ]
}