get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 814553,
    "url": "http://patchwork.ozlabs.org/api/patches/814553/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170916212331.170463-9-sjg@chromium.org/",
    "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": "<20170916212331.170463-9-sjg@chromium.org>",
    "list_archive_url": null,
    "date": "2017-09-16T21:23:21",
    "name": "[U-Boot,08/13] log: Add a 'log level' command",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "43292451b6980dc058811e9d50b88b9ec7517092",
    "submitter": {
        "id": 6170,
        "url": "http://patchwork.ozlabs.org/api/people/6170/?format=api",
        "name": "Simon Glass",
        "email": "sjg@chromium.org"
    },
    "delegate": {
        "id": 3184,
        "url": "http://patchwork.ozlabs.org/api/users/3184/?format=api",
        "username": "sjg",
        "first_name": "Simon",
        "last_name": "Glass",
        "email": "sjg@chromium.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170916212331.170463-9-sjg@chromium.org/mbox/",
    "series": [
        {
            "id": 3473,
            "url": "http://patchwork.ozlabs.org/api/series/3473/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=3473",
            "date": "2017-09-16T21:23:14",
            "name": "log: Add a new logging feature",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/3473/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/814553/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/814553/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=\"S2GJ6qH7\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xvljG156Sz9sPr\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 17 Sep 2017 07:27:29 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid AAD19C21DE5; Sat, 16 Sep 2017 21:25:07 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 4289DC21DE5;\n\tSat, 16 Sep 2017 21:24:20 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid E5140C21DDE; Sat, 16 Sep 2017 21:24:14 +0000 (UTC)",
            "from mail-oi0-f46.google.com (mail-oi0-f46.google.com\n\t[209.85.218.46])\n\tby lists.denx.de (Postfix) with ESMTPS id 0D770C21DDE\n\tfor <u-boot@lists.denx.de>; Sat, 16 Sep 2017 21:24:11 +0000 (UTC)",
            "by mail-oi0-f46.google.com with SMTP id r20so2368750oie.0\n\tfor <u-boot@lists.denx.de>; Sat, 16 Sep 2017 14:24:10 -0700 (PDT)",
            "from kiwi.bld.corp.google.com ([100.101.164.89])\n\tby smtp.gmail.com with ESMTPSA id\n\t199sm597454oie.58.2017.09.16.14.24.08\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSat, 16 Sep 2017 14:24:08 -0700 (PDT)",
            "by kiwi.bld.corp.google.com (Postfix, from userid 121222)\n\tid 31271140A54; Sat, 16 Sep 2017 15:24:08 -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; \n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=y3wMv1tq4/Q9UFsdwYIDQlDXycOcR6BLqREuMzWnixU=;\n\tb=S2GJ6qH7rxuvsMiMa8p1/rPEMZjBwK0achPrbU+v/gnxH07pMA95Lj+d6uOy7riu9C\n\tyHiT4itrZV/BZR6CRUQ5wLCPU8Ru+mknbT+VH5UFVVsJBSiO2wn7AdKgQi/eAj/0ao4A\n\tPiA/4xNYRQhuFfXUEM2DDymF9MBVNTF0UQY5ND7ILoIO5bMErlTLLrT3deZQWrks2V/V\n\tEjNi32m/U/E+oWeBfM8Z2wQExrDPNfTUWJVCNxcFqY2QzpX89g41Mrc0Hyqf3saMDZXW\n\tJmX72cVIFfDK8gm0Yq9dGkdrXmI8favTcZNFAb7uS7GSc+8JBWdP1yDBsCy06MED/7p2\n\tTpFQ==",
        "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\t:in-reply-to:references;\n\tbh=y3wMv1tq4/Q9UFsdwYIDQlDXycOcR6BLqREuMzWnixU=;\n\tb=sc5hp/XGrI21RI458u3Ma9hxttzPzs/WBEBLcnAihnM/z8VoLjaSc2zv296qYpUG3N\n\t8vKIGcMhAQM5Cey+m18IZBaz1owYQD5y3WO0e7TRrnNnPRNydtZfMffdwWB9M0Oo92Ki\n\tt7UuDJ1WZqAalwFnoLKk5j5alfsiIhuWdlv8wm59AQkYQcZWTVQwFFu9vNoFUVnCbiCr\n\tR5DFwrS8GWS4V859yf8jo8ZQnuWnNKpXy2bP6G7fidvtMD6ZB60tM0Si+rwfLL03bT9j\n\tpnsXKs/fWBUs+3qU0j/uH1/mXpEFoRgSttrfKdSKjwgbM1bUl6YmEm0B1G6frOt474aJ\n\tW/tQ==",
        "X-Gm-Message-State": "AHPjjUhWv/5uZbxKDVCGz5l/bkybMFT/Nyv9RAlqj9KExFHecDFu4BDi\n\tPKrUAjhhrwqDGD4Z",
        "X-Google-Smtp-Source": "ADKCNb6gR4CnTmHub+eYk0rko+f5QU1bENifMo72tRmwUy7vP+l27vemvXi5mHEyJZKfCiSTkjEKkQ==",
        "X-Received": "by 10.202.214.81 with SMTP id n78mr27638295oig.297.1505597049629;\n\tSat, 16 Sep 2017 14:24:09 -0700 (PDT)",
        "From": "Simon Glass <sjg@chromium.org>",
        "To": "U-Boot Mailing List <u-boot@lists.denx.de>",
        "Date": "Sat, 16 Sep 2017 15:23:21 -0600",
        "Message-Id": "<20170916212331.170463-9-sjg@chromium.org>",
        "X-Mailer": "git-send-email 2.14.1.690.gbb1197296e-goog",
        "In-Reply-To": "<20170916212331.170463-1-sjg@chromium.org>",
        "References": "<20170916212331.170463-1-sjg@chromium.org>",
        "Cc": "Tom Rini <trini@konsulko.com>,\n\tMaxime Ripard <maxime.ripard@free-electrons.com>",
        "Subject": "[U-Boot] [PATCH 08/13] log: Add a 'log level' 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": "Add a command for adjusting the log level.\n\nSigned-off-by: Simon Glass <sjg@chromium.org>\n---\n\n cmd/Kconfig  |  7 +++++++\n cmd/Makefile |  1 +\n cmd/log.c    | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++\n 3 files changed, 63 insertions(+)\n create mode 100644 cmd/log.c",
    "diff": "diff --git a/cmd/Kconfig b/cmd/Kconfig\nindex d6d130edfa..702d4f251f 100644\n--- a/cmd/Kconfig\n+++ b/cmd/Kconfig\n@@ -1478,6 +1478,13 @@ config CMD_KGDB\n \t  single-stepping, inspecting variables, etc. This is supported only\n \t  on PowerPC at present.\n \n+config CMD_LOG\n+\tbool \"log - Generation, control and access to logging\"\n+\thelp\n+\t  This provides access to logging features. It allows the output of\n+\t  log data to be controlled to a limited extent (setting up the default\n+\t  maximum log level for emitting of records).\n+\n config CMD_TRACE\n \tbool \"trace - Support tracing of function calls and timing\"\n \thelp\ndiff --git a/cmd/Makefile b/cmd/Makefile\nindex 1b13d07901..f09278da24 100644\n--- a/cmd/Makefile\n+++ b/cmd/Makefile\n@@ -75,6 +75,7 @@ obj-$(CONFIG_LED_STATUS_CMD) += legacy_led.o\n obj-$(CONFIG_CMD_LED) += led.o\n obj-$(CONFIG_CMD_LICENSE) += license.o\n obj-y += load.o\n+obj-$(CONFIG_CMD_LOG) += log.o\n obj-$(CONFIG_ID_EEPROM) += mac.o\n obj-$(CONFIG_CMD_MD5SUM) += md5sum.o\n obj-$(CONFIG_CMD_MEMORY) += mem.o\ndiff --git a/cmd/log.c b/cmd/log.c\nnew file mode 100644\nindex 0000000000..44e04ab16a\n--- /dev/null\n+++ b/cmd/log.c\n@@ -0,0 +1,55 @@\n+/*\n+ * Copyright (c) 2017 Google, Inc\n+ * Written by Simon Glass <sjg@chromium.org>\n+ *\n+ * SPDX-License-Identifier:     GPL-2.0+\n+ */\n+\n+#include <common.h>\n+#include <command.h>\n+#include <dm.h>\n+#include <log.h>\n+\n+static int do_log_level(cmd_tbl_t *cmdtp, int flag, int argc,\n+\t\t\tchar * const argv[])\n+{\n+\tif (argc > 1)\n+\t\tgd->default_log_level = simple_strtol(argv[1], NULL, 10);\n+\telse\n+\t\tprintf(\"Default log level: %d\\n\", gd->default_log_level);\n+\n+\treturn 0;\n+}\n+\n+static cmd_tbl_t log_sub[] = {\n+\tU_BOOT_CMD_MKENT(level, CONFIG_SYS_MAXARGS, 1, do_log_level, \"\", \"\"),\n+};\n+\n+static int do_log(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])\n+{\n+\tcmd_tbl_t *cp;\n+\n+\tif (argc < 2)\n+\t\treturn CMD_RET_USAGE;\n+\n+\t/* drop initial \"log\" arg */\n+\targc--;\n+\targv++;\n+\n+\tcp = find_cmd_tbl(argv[0], log_sub, ARRAY_SIZE(log_sub));\n+\tif (cp)\n+\t\treturn cp->cmd(cmdtp, flag, argc, argv);\n+\n+\treturn CMD_RET_USAGE;\n+}\n+\n+#ifdef CONFIG_SYS_LONGHELP\n+static char log_help_text[] =\n+\t\"level - get/set log level\\n\"\n+\t;\n+#endif\n+\n+U_BOOT_CMD(\n+\tlog, CONFIG_SYS_MAXARGS, 1, do_log,\n+\t\"log system\", log_help_text\n+);\n",
    "prefixes": [
        "U-Boot",
        "08/13"
    ]
}