get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 813121,
    "url": "http://patchwork.ozlabs.org/api/patches/813121/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1505268036-23085-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": "<1505268036-23085-1-git-send-email-bmeng.cn@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-13T02:00:36",
    "name": "[U-Boot,v2] cmd: blk: Use LBAFU in the common block command",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "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/1505268036-23085-1-git-send-email-bmeng.cn@gmail.com/mbox/",
    "series": [
        {
            "id": 2793,
            "url": "http://patchwork.ozlabs.org/api/series/2793/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=2793",
            "date": "2017-09-13T02:00:36",
            "name": "[U-Boot,v2] cmd: blk: Use LBAFU in the common block command",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/2793/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/813121/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/813121/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=\"W0JX2ev2\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xsPsh1J5Cz9sPs\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Sep 2017 11:56:40 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid C5C2CC21FAE; Wed, 13 Sep 2017 01:56:31 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 5B482C22195;\n\tWed, 13 Sep 2017 01:56:29 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 55888C21FAE; Wed, 13 Sep 2017 01:56:17 +0000 (UTC)",
            "from mail-io0-f193.google.com (mail-io0-f193.google.com\n\t[209.85.223.193])\n\tby lists.denx.de (Postfix) with ESMTPS id E11A6C22143\n\tfor <u-boot@lists.denx.de>; Wed, 13 Sep 2017 01:56:12 +0000 (UTC)",
            "by mail-io0-f193.google.com with SMTP id 93so9352430iol.4\n\tfor <u-boot@lists.denx.de>; Tue, 12 Sep 2017 18:56:12 -0700 (PDT)",
            "from ala-d2121-lx1.wrs.com (unknown-156-139.windriver.com.\n\t[147.11.156.139])\n\tby smtp.gmail.com with ESMTPSA id 21sm69145itv.40.2017.09.12.18.56.10\n\t(version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 12 Sep 2017 18:56:10 -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=MVOAiPgoXCIPF3hoh7SjMisWfiCS5N7GYZctG/bOKQo=;\n\tb=W0JX2ev2u+38YRGbpTICYJ7sXD+1ci9DFAPAC8cnRuIc3PBUHCaoV9ijXKwcc0qs8k\n\tPRNzBTrjZtlUPetjxmOaDMeVhOCp3LCewLa1R0k6Drl3QcY49+sVXGf6S44dvYjCy+Q5\n\tkG5qSC3gZ5jtwrO/G7S0s28gpUQMNam7qKFmuQQqU5cpU0o8XL+P5qB11O8BO4HnjNNA\n\tSikcQXe5aSaXk81dt0cJnuYHtd4ACrIC0UbwS96edaMUivcGrZffh9OiD8EAqkMZN7Zw\n\tkRBM3I7KVfNi5SEJ01/xWzvuHRXrrod17XhEUNHn+bQ9l1GF3ICnH/m0KV5IFSXhGVYm\n\thxMA==",
        "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=MVOAiPgoXCIPF3hoh7SjMisWfiCS5N7GYZctG/bOKQo=;\n\tb=eJrAieB90X+qb2rZwHJRPm1ct/XacuPqD8HTzHtwyu9m62NnoGZIdCm4IL8CP9n5kd\n\tM0XEYtbX/gV2oz1uFE/1Cz4BFiDNLi+4gVnxrsrY4Ybe1LnZ4fjVKNIJ2h1QxeEl67E6\n\tD8OhJ/kvXTlnlNcsal/S+rTFuazHZegS8d0NVDuWEWCyxC84Zn6FdpOU2C+d2CJZTzC/\n\tC2GoyRkDKe4pNJVSm49l4V7+/LUu9CKJiM9oiJI+0JFr5izFIAmFOFnfAXhP33dGpyrh\n\ts+vevR+UWBiFX1RaM5Bebuct2i+pwkVp3n/vCXfGh9KHr8gNjLNefYPeMph1S1jTfPfV\n\tbhqw==",
        "X-Gm-Message-State": "AHPjjUhZezs+b8+DMh367ztvep7E5/Q8E4CtioFlKXj+hgJrMpVJhBU9\n\ttTnKVrDUOx9wXw==",
        "X-Google-Smtp-Source": "AOwi7QDh6ceIQu0XLGHMIe144HdFwlXLjLPiVZVj0qyVVawONEBbtTf0CoYmAJuh0oKlPm4O9J3WXw==",
        "X-Received": "by 10.107.140.13 with SMTP id o13mr22926976iod.216.1505267771886;\n\tTue, 12 Sep 2017 18:56:11 -0700 (PDT)",
        "From": "Bin Meng <bmeng.cn@gmail.com>",
        "To": "Tom Rini <trini@konsulko.com>, U-Boot Mailing List <u-boot@lists.denx.de>",
        "Date": "Tue, 12 Sep 2017 19:00:36 -0700",
        "Message-Id": "<1505268036-23085-1-git-send-email-bmeng.cn@gmail.com>",
        "X-Mailer": "git-send-email 1.7.9.5",
        "Subject": "[U-Boot] [PATCH v2] 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- rebase on top of u-boot/master\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",
        "v2"
    ]
}