get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 796741,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/796741/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170802181202.52645-1-sjg@chromium.org/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20170802181202.52645-1-sjg@chromium.org>",
    "list_archive_url": null,
    "date": "2017-08-02T18:12:01",
    "name": "[U-Boot,v2,1/2] dm: core: Drop use of strlcpy()",
    "commit_ref": "a0f9acb08bd6f3b4a6f3adcb02c8170e522c074a",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "6f352344bde889e0033152ac730a7f75f5873eaa",
    "submitter": {
        "id": 6170,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/6170/?format=api",
        "name": "Simon Glass",
        "email": "sjg@chromium.org"
    },
    "delegate": {
        "id": 3184,
        "url": "http://patchwork.ozlabs.org/api/1.2/users/3184/?format=api",
        "username": "sjg",
        "first_name": "Simon",
        "last_name": "Glass",
        "email": "sjg@chromium.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170802181202.52645-1-sjg@chromium.org/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/796741/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/796741/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=google.com header.i=@google.com\n\theader.b=\"unb0Cvpc\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xN1Vs6M2dz9t1G\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu,  3 Aug 2017 04:12:21 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 83BA8C21D90; Wed,  2 Aug 2017 18:12:13 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id D99F5C21C35;\n\tWed,  2 Aug 2017 18:12:11 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 23C68C21C35; Wed,  2 Aug 2017 18:12:11 +0000 (UTC)",
            "from mail-oi0-f41.google.com (mail-oi0-f41.google.com\n\t[209.85.218.41])\n\tby lists.denx.de (Postfix) with ESMTPS id 8509AC21C2F\n\tfor <u-boot@lists.denx.de>; Wed,  2 Aug 2017 18:12:10 +0000 (UTC)",
            "by mail-oi0-f41.google.com with SMTP id g131so51923030oic.3\n\tfor <u-boot@lists.denx.de>; Wed, 02 Aug 2017 11:12:10 -0700 (PDT)",
            "from kiwi.bld.corp.google.com ([100.101.164.89])\n\tby smtp.gmail.com with ESMTPSA id\n\tw134sm4151846oif.32.2017.08.02.11.12.08\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 02 Aug 2017 11:12:08 -0700 (PDT)",
            "by kiwi.bld.corp.google.com (Postfix, from userid 121222)\n\tid 240691404D7; Wed,  2 Aug 2017 12:12:06 -0600 (MDT)"
        ],
        "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=RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\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=google.com;\n\ts=20161025; h=sender:from:to:cc:subject:date:message-id;\n\tbh=URQerDq2W8SI91m0k9Oy8hZv6HQIrazDRMIukAlZEvU=;\n\tb=unb0CvpcVyoq+/tkbCV8lvFg3HJtoHdi5tnACWiIy9/uAko0uYUMg7DY7yl84+mAb5\n\te8Jl++ihvwYoO0QNW0q/6Du4radDT1Nuzpsaue1vsADJraVVA5ahS/4wGfrDHY9pQ74b\n\tBa6BSMlZhzZl4jzDTkFgyUhtSJeMXof5yg7JpHUxtH1C230lo4cN5uGETV8uiWKdvlFM\n\th2+ePjqEgEzG0LrnmOpemysIIi64dShW+PD56TjWhko/rejFohzqXRKAglEcoeP1Vf37\n\tC3i1+Sm8xpriAaqdtzvfdvCtHsyg05hdcsn7SYEEXW7ygkLO9K0cJ6IYfa8n8h4Ub2ej\n\tPIOw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id;\n\tbh=URQerDq2W8SI91m0k9Oy8hZv6HQIrazDRMIukAlZEvU=;\n\tb=MsIMadCE+c2B6GjkltxOQTIcQRZkWmgoqB1OGo7l6zoz5K/CtpAWjcvjRRlL5HfEZN\n\tfR2c2VOX4d35jqCoEw980UEOXHBMGE5HxmuEIJzv27BVfjYvrxngUgFaBxVMmI1GIa5B\n\tnj4/YULmlyNvRtoHE9YbXb/Rr3SRC0FICENy5SVuElFxM0SrFB34GOveI4TdyydkDfF6\n\t0kAffgREc+xVVP0Hy4flywSpIYSbr4REiy98KT7PmCBTJORCsP+r7uK3Lnn12f510pWU\n\t1uj4TmnuWKXlrN6HwV/WVWzKN7DW0GH6/ts+p2GIqI4r0wu4/EOu1MpHsPw9v7jvouxy\n\tGG8A==",
        "X-Gm-Message-State": "AIVw110Fd2n694lKGe/5glLHu5vZKsu4mII9H5sSa28zfH9s+zXQghyW\n\to0DUG62idselHnkA",
        "X-Received": "by 10.202.223.194 with SMTP id\n\tw185mr18969522oig.108.1501697528957; \n\tWed, 02 Aug 2017 11:12:08 -0700 (PDT)",
        "From": "Simon Glass <sjg@chromium.org>",
        "To": "U-Boot Mailing List <u-boot@lists.denx.de>",
        "Date": "Wed,  2 Aug 2017 12:12:01 -0600",
        "Message-Id": "<20170802181202.52645-1-sjg@chromium.org>",
        "X-Mailer": "git-send-email 2.14.0.rc1.383.gd1ce394fe2-goog",
        "Cc": "Tom Rini <trini@konsulko.com>",
        "Subject": "[U-Boot] [PATCH v2 1/2] dm: core: Drop use of strlcpy()",
        "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": "We can use printf() to limit the string width. Adjust the code to do this\ninstead of using strlcpy() which is a bit clumbsy.\n\nSigned-off-by: Simon Glass <sjg@chromium.org>\n---\n\nChanges in v2:\n- Add new patch to drop use of strlcpy()\n\n drivers/core/dump.c | 6 ++----\n 1 file changed, 2 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/core/dump.c b/drivers/core/dump.c\nindex c3e109e7ed..1bb64098f4 100644\n--- a/drivers/core/dump.c\n+++ b/drivers/core/dump.c\n@@ -14,11 +14,9 @@ static void show_devices(struct udevice *dev, int depth, int last_flag)\n {\n \tint i, is_last;\n \tstruct udevice *child;\n-\tchar class_name[12];\n \n \t/* print the first 11 characters to not break the tree-format. */\n-\tstrlcpy(class_name, dev->uclass->uc_drv->name, sizeof(class_name));\n-\tprintf(\" %-11s [ %c ]    \", class_name,\n+\tprintf(\" %-10.10s [ %c ]    \", dev->uclass->uc_drv->name,\n \t       dev->flags & DM_FLAG_ACTIVATED ? '+' : ' ');\n \n \tfor (i = depth; i >= 0; i--) {\n@@ -50,7 +48,7 @@ void dm_dump_all(void)\n \n \troot = dm_root();\n \tif (root) {\n-\t\tprintf(\" Class       Probed   Name\\n\");\n+\t\tprintf(\" Class      Probed   Name\\n\");\n \t\tprintf(\"----------------------------------------\\n\");\n \t\tshow_devices(root, -1, 0);\n \t}\n",
    "prefixes": [
        "U-Boot",
        "v2",
        "1/2"
    ]
}