get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 804298,
    "url": "http://patchwork.ozlabs.org/api/patches/804298/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1503386732-24210-1-git-send-email-bmeng.cn@gmail.com/",
    "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": "<1503386732-24210-1-git-send-email-bmeng.cn@gmail.com>",
    "list_archive_url": null,
    "date": "2017-08-22T07:25:32",
    "name": "[U-Boot] cmd: blk: Use LBAFU in the common block command",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "2ec5484606adbbdf32d180a064dd0f6904016899",
    "submitter": {
        "id": 64981,
        "url": "http://patchwork.ozlabs.org/api/people/64981/?format=api",
        "name": "Bin Meng",
        "email": "bmeng.cn@gmail.com"
    },
    "delegate": {
        "id": 3651,
        "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api",
        "username": "trini",
        "first_name": "Tom",
        "last_name": "Rini",
        "email": "trini@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1503386732-24210-1-git-send-email-bmeng.cn@gmail.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/804298/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/804298/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>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"PEQsNYyL\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xc26S3hzkz9t2R\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 22 Aug 2017 17:21:20 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid E2E54C21E24; Tue, 22 Aug 2017 07:21:13 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 1B235C21DCE;\n\tTue, 22 Aug 2017 07:21:11 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 214D5C21DCE; Tue, 22 Aug 2017 07:21:10 +0000 (UTC)",
            "from mail-io0-f195.google.com (mail-io0-f195.google.com\n\t[209.85.223.195])\n\tby lists.denx.de (Postfix) with ESMTPS id 96662C21C26\n\tfor <u-boot@lists.denx.de>; Tue, 22 Aug 2017 07:21:09 +0000 (UTC)",
            "by mail-io0-f195.google.com with SMTP id m40so1737762ioi.4\n\tfor <u-boot@lists.denx.de>; Tue, 22 Aug 2017 00:21:09 -0700 (PDT)",
            "from ala-d2121-lx1.wrs.com (unknown-156-139.windriver.com.\n\t[147.11.156.139]) by smtp.gmail.com with ESMTPSA id\n\te68sm2594419itc.41.2017.08.22.00.21.06\n\t(version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 22 Aug 2017 00:21:07 -0700 (PDT)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=0.0 required=5.0 tests=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=unavailable\n\tautolearn_force=no version=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:subject:date:message-id;\n\tbh=hQlMBfvEEZUhlA8BEZvc4IFJ18dKc9qIaywOgKMYuAY=;\n\tb=PEQsNYyL42ON4JeXzafn3aJ65+puJS8G/dGKEPe/6sSNMdXRsHkmj7lhE5d0PEsjsi\n\ttkNPLpyy1U1N5lVxvQcFXjkT4S1M68uk+gcGvBm4aaRJ+2XjHZpoKElOVYGEYnyCmmgC\n\t5d2a0wT+BA5+MJr4pInuMzr0R86eDBgegQnT1VpPWJOhPwlPPbCdpMDKFu84CmY62sqU\n\tG3oEiQs2hrTr9mU4+119YpxHJUAqW/vPWEWOhdBlmumaX75msCq+IFkWA0TUOW0/JLl8\n\tO/KFvai+XHGo/oaOk5zb1JIT6RLHT2OEB1NEqJkhiLwEwqk4UKhtc6CMPidAXfuXmg4X\n\tElVw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:subject:date:message-id;\n\tbh=hQlMBfvEEZUhlA8BEZvc4IFJ18dKc9qIaywOgKMYuAY=;\n\tb=ptRbUyVrwXOubwT3pQlkqSQzhCWlJdbDB61b4SLludQ/MwkhnViXzQOgfaPJ0RP82F\n\tIMi/v2FcVArEQ6ekkZEYPKDB4h33fxK+zlgLBHvjAP1tclojQ0zwEWjk11vvOeKZy+T5\n\tG3v9dQtEEmCLmBpeKj6dCBTDHUTaHynS7UYbrOD2BFpnqEfJ2v+EBATPsVtqVSTM60GI\n\trRXSQI5JP2bLIestgBPyGwJXzUVvSUk0ADAKtNoaqShkgvkZ+KaAV6MuWKZtKyBiom3k\n\tUQhtV+mv3xPKGkypbXKwjU65NPdeYFgySnvrYku+aoJWGDQZ4hbCvZC90sEIgdKYXaOy\n\t/LCA==",
        "X-Gm-Message-State": "AHYfb5hWAw3hskD63a8kO2k+yYBLi0kofNcKpR0ixsmXSRbJFP9GKYwX\n\tFM5IVl/U0Uzb/A==",
        "X-Received": "by 10.107.205.202 with SMTP id\n\td193mr20492947iog.246.1503386468190; \n\tTue, 22 Aug 2017 00:21:08 -0700 (PDT)",
        "From": "Bin Meng <bmeng.cn@gmail.com>",
        "To": "Simon Glass <sjg@chromium.org>,\n\t=?UTF-8?q?Lothar=20Wa=C3=9Fmann?= <LW@karo-electronics.de>,\n\tTom Rini <trini@konsulko.com>, U-Boot Mailing List <u-boot@lists.denx.de>",
        "Date": "Tue, 22 Aug 2017 00:25:32 -0700",
        "Message-Id": "<1503386732-24210-1-git-send-email-bmeng.cn@gmail.com>",
        "X-Mailer": "git-send-email 1.7.9.5",
        "Subject": "[U-Boot] [PATCH] cmd: blk: Use LBAFU in the common block command",
        "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": "There is already a macro LBAFU to aid formatted print with lbaint_t\nvariables. Let's use it in the common block command codes.\n\nSigned-off-by: Bin Meng <bmeng.cn@gmail.com>\n\n---\n\nChanges in v2:\n- Change to use LBAFU\n\n cmd/blk_common.c | 10 ++++------\n 1 file changed, 4 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/cmd/blk_common.c b/cmd/blk_common.c\nindex 86c75e7..0c0c23e 100644\n--- a/cmd/blk_common.c\n+++ b/cmd/blk_common.c\n@@ -68,9 +68,8 @@ int blk_common_cmd(int argc, char * const argv[], enum if_type if_type,\n \t\t\tulong cnt = simple_strtoul(argv[4], NULL, 16);\n \t\t\tulong n;\n \n-\t\t\tprintf(\"\\n%s read: device %d block # %lld, count %ld ... \",\n-\t\t\t       if_name, *cur_devnump, (unsigned long long)blk,\n-\t\t\t       cnt);\n+\t\t\tprintf(\"\\n%s read: device %d block # \"LBAFU\", count %lu ... \",\n+\t\t\t       if_name, *cur_devnump, blk, cnt);\n \n \t\t\tn = blk_read_devnum(if_type, *cur_devnump, blk, cnt,\n \t\t\t\t\t    (ulong *)addr);\n@@ -84,9 +83,8 @@ int blk_common_cmd(int argc, char * const argv[], enum if_type if_type,\n \t\t\tulong cnt = simple_strtoul(argv[4], NULL, 16);\n \t\t\tulong n;\n \n-\t\t\tprintf(\"\\n%s write: device %d block # %lld, count %ld ... \",\n-\t\t\t       if_name, *cur_devnump, (unsigned long long)blk,\n-\t\t\t       cnt);\n+\t\t\tprintf(\"\\n%s write: device %d block # \"LBAFU\", count %lu ... \",\n+\t\t\t       if_name, *cur_devnump, blk, cnt);\n \n \t\t\tn = blk_write_devnum(if_type, *cur_devnump, blk, cnt,\n \t\t\t\t\t     (ulong *)addr);\n",
    "prefixes": [
        "U-Boot"
    ]
}