get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1132184,
    "url": "http://patchwork.ozlabs.org/api/patches/1132184/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20190715182856.21688-10-jagan@amarulasolutions.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": "<20190715182856.21688-10-jagan@amarulasolutions.com>",
    "list_archive_url": null,
    "date": "2019-07-15T18:28:47",
    "name": "[U-Boot,v3,09/18] debug_uart: Add printdec",
    "commit_ref": "3940ab6523336c6d37dfe6b05a0dbd6ea1785445",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "6f9c1d0e72fcc15afbf4f291e57fce0b72885024",
    "submitter": {
        "id": 69820,
        "url": "http://patchwork.ozlabs.org/api/people/69820/?format=api",
        "name": "Jagan Teki",
        "email": "jagan@amarulasolutions.com"
    },
    "delegate": {
        "id": 93623,
        "url": "http://patchwork.ozlabs.org/api/users/93623/?format=api",
        "username": "kevery",
        "first_name": "Kever",
        "last_name": "Yang",
        "email": "ykai007@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20190715182856.21688-10-jagan@amarulasolutions.com/mbox/",
    "series": [
        {
            "id": 119574,
            "url": "http://patchwork.ozlabs.org/api/series/119574/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=119574",
            "date": "2019-07-15T18:28:43",
            "name": "ram: rk3399: Add rank detection",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/119574/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1132184/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1132184/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; dmarc=none (p=none dis=none)\n\theader.from=amarulasolutions.com",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=amarulasolutions.com\n\theader.i=@amarulasolutions.com header.b=\"qkxC6tw9\"; \n\tdkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 45nXGz6QkZz9sN4\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 16 Jul 2019 04:33:47 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 610CDC21FAA; Mon, 15 Jul 2019 18:30:43 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id A459AC21FCC;\n\tMon, 15 Jul 2019 18:29:48 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 430E3C21F90; Mon, 15 Jul 2019 18:29:41 +0000 (UTC)",
            "from mail-pf1-f195.google.com (mail-pf1-f195.google.com\n\t[209.85.210.195])\n\tby lists.denx.de (Postfix) with ESMTPS id 55E14C21FA5\n\tfor <u-boot@lists.denx.de>; Mon, 15 Jul 2019 18:29:41 +0000 (UTC)",
            "by mail-pf1-f195.google.com with SMTP id t16so7799108pfe.11\n\tfor <u-boot@lists.denx.de>; Mon, 15 Jul 2019 11:29:41 -0700 (PDT)",
            "from localhost.localdomain ([49.206.201.107])\n\tby smtp.gmail.com with ESMTPSA id\n\ty133sm20250075pfb.28.2019.07.15.11.29.36\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 15 Jul 2019 11:29:39 -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=RCVD_IN_MSPIKE_H3,\n\tRCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no\n\tversion=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=amarulasolutions.com; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=7B3tbjY3n0ai6z9ObJzMBT9vy+XRoJe3mWhFKoigG/c=;\n\tb=qkxC6tw9q/iE5Q/wGcgr4yNQUnfn3SNT9ms/lMZ/JVJ02uYS6SpPVqo2hJlU4Fn5hv\n\toFtkDd28/41jyg0UypB0ty4rgr7xnFJLRA+u6t0VhzjPzn0/ERexpt0BYPiUrMYjkRV7\n\tm7pEbtl986q2r0GCMxx3ckV/Uk33eMKXviO1w=",
        "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:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=7B3tbjY3n0ai6z9ObJzMBT9vy+XRoJe3mWhFKoigG/c=;\n\tb=SbyRxLlLM65Yju2dJk94FbftuRnzXknogrtyaLL08cJ57Epgk6/z2D2AFSXhAG/W+y\n\tRNvL/B9VeA3jRGYDlt88D2SRs9inWgyGEiynvaV1QFpnRF9TDdcERaryS9Sp3L56eFbN\n\t/wuxnRtqYXdhk2dr9aljavi9b6U5q6kzkI2kWgAJSuPMVqF6XH3W4taQqbunqGC4zreB\n\tAQ8c/04LFwmnJ0GPFIPtGzFkkF/+lCqqZCJzfvTUOOoDs3ffBde4pjNRqr6p/FwRa7bn\n\tnMWdcSPAyZlBLjvGhslDMJMVNg+8vZ0+5FBOuvNxm7gS/7zvk3mXZPYoLMK7ovJpUTCZ\n\t0RyQ==",
        "X-Gm-Message-State": "APjAAAXI0thFq6/U/emZJinPTpdC1NwCRUOa7X9739kn7RmUpb4aMbY/\n\tsyo9Kgi5u/+drigL+avMw+oiWg==",
        "X-Google-Smtp-Source": "APXvYqz1ots+2vOOVy/KYB7tHZX3DH1JfKKXKm1GTY86M6Bq4k3WY69/eZemTRam3Al0V7T+3v4j5g==",
        "X-Received": "by 2002:a17:90a:c58e:: with SMTP id\n\tl14mr30620239pjt.104.1563215379950; \n\tMon, 15 Jul 2019 11:29:39 -0700 (PDT)",
        "From": "Jagan Teki <jagan@amarulasolutions.com>",
        "To": "Simon Glass <sjg@chromium.org>,\n\tPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>,\n\tKever Yang <kever.yang@rock-chips.com>,\n\tYouMin Chen <cym@rock-chips.com>, u-boot@lists.denx.de",
        "Date": "Mon, 15 Jul 2019 23:58:47 +0530",
        "Message-Id": "<20190715182856.21688-10-jagan@amarulasolutions.com>",
        "X-Mailer": "git-send-email 2.18.0.321.gffc6fa0e3",
        "In-Reply-To": "<20190715182856.21688-1-jagan@amarulasolutions.com>",
        "References": "<20190715182856.21688-1-jagan@amarulasolutions.com>",
        "MIME-Version": "1.0",
        "Cc": "linux-rockchip@lists.infradead.org, gajjar04akash@gmail.com,\n\tlinux-amarula@amarulasolutions.com,\n\tManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>",
        "Subject": "[U-Boot] [PATCH v3 09/18] debug_uart: Add printdec",
        "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>",
        "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 printdec, this would help to print an\noutput a decimalism value.\n\nSigned-off-by: Jagan Teki <jagan@amarulasolutions.com>\nSigned-off-by: YouMin Chen <cym@rock-chips.com>\n---\n include/debug_uart.h | 19 +++++++++++++++++++\n 1 file changed, 19 insertions(+)",
    "diff": "diff --git a/include/debug_uart.h b/include/debug_uart.h\nindex 34e8b2fc81..cd70ae1a04 100644\n--- a/include/debug_uart.h\n+++ b/include/debug_uart.h\n@@ -104,6 +104,13 @@ void printhex4(uint value);\n  */\n void printhex8(uint value);\n \n+/**\n+ * printdec() - Output a decimalism value\n+ *\n+ * @value:\tValue to output\n+ */\n+void printdec(uint value);\n+\n #ifdef CONFIG_DEBUG_UART_ANNOUNCE\n #define _DEBUG_UART_ANNOUNCE\tprintascii(\"<debug_uart> \");\n #else\n@@ -170,6 +177,18 @@ void printhex8(uint value);\n \t{ \\\n \t\tprinthex(value, 8); \\\n \t} \\\n+\\\n+\tvoid printdec(uint value) \\\n+\t{ \\\n+\t\tif (value > 10) { \\\n+\t\t\tprintdec(value / 10); \\\n+\t\t\tvalue %= 10; \\\n+\t\t} else if (value == 10) { \\\n+\t\t\t_debug_uart_putc('1'); \\\n+\t\t\tvalue = 0; \\\n+\t\t} \\\n+\t\t_debug_uart_putc('0' + value); \\\n+\t} \\\n \\\n \tvoid debug_uart_init(void) \\\n \t{ \\\n",
    "prefixes": [
        "U-Boot",
        "v3",
        "09/18"
    ]
}