get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 817982,
    "url": "http://patchwork.ozlabs.org/api/patches/817982/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170924195716.3433-17-xypron.glpk@gmx.de/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170924195716.3433-17-xypron.glpk@gmx.de>",
    "list_archive_url": null,
    "date": "2017-09-24T19:57:15",
    "name": "[U-Boot,16/17] efi_selftest: allow printing MAC addresses",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "3bb879ea0bcf94030cedb41f250bede3fb86b787",
    "submitter": {
        "id": 61270,
        "url": "http://patchwork.ozlabs.org/api/people/61270/?format=api",
        "name": "Heinrich Schuchardt",
        "email": "xypron.glpk@gmx.de"
    },
    "delegate": {
        "id": 3400,
        "url": "http://patchwork.ozlabs.org/api/users/3400/?format=api",
        "username": "agraf",
        "first_name": "Alexander",
        "last_name": "Graf",
        "email": "agraf@suse.de"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170924195716.3433-17-xypron.glpk@gmx.de/mbox/",
    "series": [
        {
            "id": 4841,
            "url": "http://patchwork.ozlabs.org/api/series/4841/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=4841",
            "date": "2017-09-24T19:57:03",
            "name": "efi_loader: Simple Network Protocol",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/4841/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/817982/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/817982/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3y0dYd1t6Sz9t3R\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 25 Sep 2017 06:07:49 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 06E74C22139; Sun, 24 Sep 2017 20:02:29 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 9EA7EC22169;\n\tSun, 24 Sep 2017 19:58:58 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 3DFB3C2214E; Sun, 24 Sep 2017 19:58:20 +0000 (UTC)",
            "from mout.gmx.net (mout.gmx.net [212.227.17.21])\n\tby lists.denx.de (Postfix) with ESMTPS id EF168C22114\n\tfor <u-boot@lists.denx.de>; Sun, 24 Sep 2017 19:58:16 +0000 (UTC)",
            "from workstation4.fritz.box ([84.118.154.110]) by mail.gmx.com\n\t(mrgmx102 [212.227.17.174]) with ESMTPSA (Nemesis) id\n\t0LlXnX-1dP4Kv1K11-00bLTl; Sun, 24 Sep 2017 21:57:34 +0200"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-0.7 required=5.0 tests=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_LOW,\n\tRCVD_IN_MSPIKE_H2 autolearn=unavailable autolearn_force=no\n\tversion=3.4.0",
        "From": "Heinrich Schuchardt <xypron.glpk@gmx.de>",
        "To": "Alexander Graf <agraf@suse.de>",
        "Date": "Sun, 24 Sep 2017 21:57:15 +0200",
        "Message-Id": "<20170924195716.3433-17-xypron.glpk@gmx.de>",
        "X-Mailer": "git-send-email 2.14.1",
        "In-Reply-To": "<20170924195716.3433-1-xypron.glpk@gmx.de>",
        "References": "<20170924195716.3433-1-xypron.glpk@gmx.de>",
        "X-Provags-ID": "V03:K0:Hp1qQ48GV4gEFWVFxXyqMdqqqyLyWgHZPZHBETSm9bJEEYojLD7\n\tgZudPPzgA4HBzaQJRU3tkoQ/rNs+EKfk9cBALO59u43nCnn4qsowLUYZjt/hWiOj+oXILdw\n\thmtzfrvHy23R7NGBmBDa5lN8behGBPIT9pJLyYuYkPx6NO6Pe2SRQeoHh9RcBBfb+Bjwfi4\n\tL/xTDb7mPYJJV0A2kbABg==",
        "X-UI-Out-Filterresults": "notjunk:1; V01:K0:KQ6/Ri7Fq+8=:DmELr8cdgDkXhfOiJa70zP\n\tJe3EA7hwHhrcstpKLc50TA0w5FLGyTs0R44QGsoOkA3IsN0N8C79jobx1T/FiEJh9mQ0Oao84\n\trhloWFAbnzSYsumI+phsYqozHCgHU3eR5JBGWoKWFXxzFyQaXsQPX0Lq0N342vVLdp3dyw+v7\n\tbNO1oSIJdzgtIToX7PqQEwYzox7RHyYWDCu9ARULlpPnaiy9NyXpaqw6X7RPObamKpPoRciAk\n\tgjkerqAtIeQmasQHQrTpICxznBuVlunj+HOZavABY80rXkqd8a1wszon2GSRX8RQJu8v4hhFY\n\tlRhFVG0DYsw4EIa7BoliPz/jYeeUpGjWSHmhV+pNp+B3rriQHumA1sNcwCl8EZgewcSHIaDYW\n\tKBgZ3WnJtm06zEduCRy/cpYg02i1kVacsutmdmy87VluMIe3vNKRG1DlpqgIRI6644T9ucMrx\n\tsTDFQSxIZQn5sxz29mzn7VqlsCMOVGV4NDAz8uxhCqaVo5KgzXDJc6735O9tSibwWLldI+/oN\n\tjKAB8NP9KAUZC5v904S8x8voOii2t6RKKk59M6T3exqM3b1mnQX3T/V5dtQCIflK7FBqdk1VL\n\tOw4J6ynvUIGqpz0Z2N7F/G8PMPeLWAGBLBhq3SL1XzIpsf2OqCHsU2WGsAI4aCSdmFRIOgFUk\n\t757+vQ+Rx3GF62NTtKAor+14okmL/5N6nQ3NIcyX0waaoQPU0EAlpJXdPcV0Tk+wtMvXvn5HD\n\tqJ2ivDYlxrSAX1wGfRJHu6ChBSep9PHKE7MYqZdLDGM7oXFw+txy91LjsEEOLCvAOX7LOzMbM\n\t7a8puHiJX9PBSMpAe3V0i+g/Hc62Q==",
        "Cc": "Heinrich Schuchardt <xypron.glpk@gmx.de>, u-boot@lists.denx.de",
        "Subject": "[U-Boot] [PATCH 16/17] efi_selftest: allow printing MAC addresses",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.18",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<http://lists.denx.de/pipermail/u-boot/>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>"
    },
    "content": "Add %pm as format string to print a MAC address.\nThis is helpful when analyzing network problems.\n\nSigned-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>\n---\n lib/efi_selftest/efi_selftest_console.c | 41 ++++++++++++++++++++++++++++++++-\n 1 file changed, 40 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/efi_selftest/efi_selftest_console.c b/lib/efi_selftest/efi_selftest_console.c\nindex 7b5b724a61..840e2290c6 100644\n--- a/lib/efi_selftest/efi_selftest_console.c\n+++ b/lib/efi_selftest/efi_selftest_console.c\n@@ -12,6 +12,37 @@\n struct efi_simple_text_output_protocol *con_out;\n struct efi_simple_input_interface *con_in;\n \n+/*\n+ * Print a MAC address to an u16 string\n+ *\n+ * @pointer: mac address\n+ * @buf: pointer to buffer address\n+ * on return position of terminating zero word\n+ */\n+static void mac(void *pointer, u16 **buf)\n+{\n+\tint i, j;\n+\tu16 c;\n+\tu8 *p = (u8 *)pointer;\n+\tu8 byte;\n+\tu16 *pos = *buf;\n+\n+\tfor (i = 0; i < ARP_HLEN; ++i) {\n+\t\tif (i)\n+\t\t\t*pos++ = ':';\n+\t\tbyte = p[i];\n+\t\tfor (j = 4; j >= 0; j -= 4) {\n+\t\t\tc = (byte >> j) & 0x0f;\n+\t\t\tc += '0';\n+\t\t\tif (c > '9')\n+\t\t\t\tc += 'a' - '9' - 1;\n+\t\t\t*pos++ = c;\n+\t\t}\n+\t}\n+\t*pos = 0;\n+\t*buf = pos;\n+}\n+\n /*\n  * Print a pointer to an u16 string\n  *\n@@ -146,7 +177,15 @@ void efi_st_printf(const char *fmt, ...)\n \t\t\t\tint2dec(va_arg(args, s32), &pos);\n \t\t\t\tbreak;\n \t\t\tcase 'p':\n-\t\t\t\tpointer(va_arg(args, void*), &pos);\n+\t\t\t\t++c;\n+\t\t\t\tswitch (*c) {\n+\t\t\t\tcase 'm':\n+\t\t\t\t\tmac(va_arg(args, void*), &pos);\n+\t\t\t\t\tbreak;\n+\t\t\t\tdefault:\n+\t\t\t\t\t--c;\n+\t\t\t\t\tpointer(va_arg(args, void*), &pos);\n+\t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase 's':\n \t\t\t\ts = va_arg(args, const char *);\n",
    "prefixes": [
        "U-Boot",
        "16/17"
    ]
}