Show a patch.

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

{
    "id": 224,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/224/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/224/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20190114100256.17777-1-kieran.bingham@ideasonboard.com>",
    "date": "2019-01-14T10:02:56",
    "name": "[libcamera-devel] libcamera: log: Fix unknown log level representation",
    "commit_ref": "bced32d514bb36b97f4dd045f4ee6919e1642aa0",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "53a8b2213d077baa4aa9e4c8b77208f18363ed56",
    "submitter": {
        "id": 4,
        "url": "https://patchwork.libcamera.org/api/1.1/people/4/?format=api",
        "name": "Kieran Bingham",
        "email": "kieran.bingham@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/224/mbox/",
    "series": [
        {
            "id": 77,
            "url": "https://patchwork.libcamera.org/api/1.1/series/77/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=77",
            "date": "2019-01-14T10:02:56",
            "name": "[libcamera-devel] libcamera: log: Fix unknown log level representation",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/77/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/224/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/224/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<kieran.bingham@ideasonboard.com>",
        "Received": [
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 25B3F60B31\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 14 Jan 2019 11:03:01 +0100 (CET)",
            "from localhost.localdomain\n\t(cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 8C9F6505;\n\tMon, 14 Jan 2019 11:03:00 +0100 (CET)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1547460180;\n\tbh=7fx+QWgz67Lf4mCZBCuftEGFyDOlU8K/WIERtuSEx7A=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=qp8YF5isvcLnabBJTO6IY/tfv6Z8uPz8IWSPNI6aM6iGimqX9ODgaixO3hojAVgBz\n\t7JifRFA1ibsLeaN7OuaFn1jcVxexPAymqOXI71t9RA4Luvb6aBjYFVeGTQ0T6xQl7Z\n\tkgNJWUpqUUnPuGhxirE2KUbb4TvcABfnChK9EScQ=",
        "From": "Kieran Bingham <kieran.bingham@ideasonboard.com>",
        "To": "LibCamera Devel <libcamera-devel@lists.libcamera.org>",
        "Date": "Mon, 14 Jan 2019 10:02:56 +0000",
        "Message-Id": "<20190114100256.17777-1-kieran.bingham@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[libcamera-devel] [PATCH] libcamera: log: Fix unknown log level\n\trepresentation",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.23",
        "Precedence": "list",
        "List-Id": "<libcamera-devel.lists.libcamera.org>",
        "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>",
        "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>",
        "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>",
        "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>",
        "X-List-Received-Date": "Mon, 14 Jan 2019 10:03:01 -0000"
    },
    "content": "Commit 99a3e7bcfb38 (\"libcamera: log: Add a LogFatal log level\")\nexpanded the text representation of the log levels to support the FATAL\nstring, but left the default unknown match at four characters.\n\nThis code should never expect to be executed, but for completeness match\nthe string lengths by adding an extra character to the result.\n\nFixes: 99a3e7bcfb38 (\"libcamera: log: Add a LogFatal log level\")\nSigned-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n src/libcamera/log.cpp | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/src/libcamera/log.cpp b/src/libcamera/log.cpp\nindex 281e31d963f5..9b2ae1bac8c8 100644\n--- a/src/libcamera/log.cpp\n+++ b/src/libcamera/log.cpp\n@@ -77,7 +77,7 @@ static const char *log_severity_name(LogSeverity severity)\n \tif (static_cast<unsigned int>(severity) < ARRAY_SIZE(names))\n \t\treturn names[severity];\n \telse\n-\t\treturn \"UNKN\";\n+\t\treturn \"UNKWN\";\n }\n \n /**\n",
    "prefixes": [
        "libcamera-devel"
    ]
}