Show a patch.

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

{
    "id": 57,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/57/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/57/",
    "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": "<20181218232122.29023-1-laurent.pinchart@ideasonboard.com>",
    "date": "2018-12-18T23:21:22",
    "name": "[libcamera-devel] libcamera: log: Add a debug log level",
    "commit_ref": "907602eab5d6071e0b979807b697e1d3fd6ac6c3",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "b231d4dcdecfa3417aa181f1f9e55883c7c96bff",
    "submitter": {
        "id": 2,
        "url": "https://patchwork.libcamera.org/api/1.1/people/2/?format=api",
        "name": "Laurent Pinchart",
        "email": "laurent.pinchart@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/57/mbox/",
    "series": [
        {
            "id": 30,
            "url": "https://patchwork.libcamera.org/api/1.1/series/30/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=30",
            "date": "2018-12-18T23:21:22",
            "name": "[libcamera-devel] libcamera: log: Add a debug log level",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/30/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/57/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/57/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<laurent.pinchart@ideasonboard.com>",
        "Received": [
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 8462E60B0C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 19 Dec 2018 00:20:34 +0100 (CET)",
            "from avalon.bb.dnainternet.fi\n\t(dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi\n\t[IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 0883A549\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 19 Dec 2018 00:20:33 +0100 (CET)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1545175234;\n\tbh=Kn81YAEMVpkh5uhGnAWNPmNPQcupuxzDlDRqmYajMSg=;\n\th=From:To:Subject:Date:From;\n\tb=p9lF5hzCSlE2ML5zMut+q18pdwNaC8eoZ0LhQMYAcTUSwhhg1f7R+gc6ujD4IEqrF\n\tkhVsLAZhivUwp97NrMMJ0zaM7IRo9lZQ8FXmuJTgkqjAi69B0H1z7zxcevtTagWhIX\n\tyyQNYJnoITThg0bb2VtTGMw5vaA+84Dqov3RLPm4=",
        "From": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Wed, 19 Dec 2018 01:21:22 +0200",
        "Message-Id": "<20181218232122.29023-1-laurent.pinchart@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.19.2",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH] libcamera: log: Add a debug log level",
        "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": "Tue, 18 Dec 2018 23:20:34 -0000"
    },
    "content": "Many of the message logged by the library will be debug messages, we\nthus need a debug log level.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n src/libcamera/include/log.h | 1 +\n src/libcamera/log.cpp       | 3 +++\n 2 files changed, 4 insertions(+)",
    "diff": "diff --git a/src/libcamera/include/log.h b/src/libcamera/include/log.h\nindex 41f8a756bf0c..74439848c6ca 100644\n--- a/src/libcamera/include/log.h\n+++ b/src/libcamera/include/log.h\n@@ -12,6 +12,7 @@\n namespace libcamera {\n \n enum LogSeverity {\n+\tLogDebug,\n \tLogInfo,\n \tLogWarning,\n \tLogError,\ndiff --git a/src/libcamera/log.cpp b/src/libcamera/log.cpp\nindex 3715e69d810e..44b3a5bbe279 100644\n--- a/src/libcamera/log.cpp\n+++ b/src/libcamera/log.cpp\n@@ -23,6 +23,8 @@ namespace libcamera {\n /**\n  * \\enum LogSeverity\n  * Log message severity\n+ * \\var LogDebug\n+ * Debug message\n  * \\var LogInfo\n  * Informational message\n  * \\var LogWarning\n@@ -43,6 +45,7 @@ namespace libcamera {\n static const char *log_severity_name(LogSeverity severity)\n {\n \tstatic const char * const names[] = {\n+\t\t\" DBG\",\n \t\t\"INFO\",\n \t\t\"WARN\",\n \t\t\" ERR\",\n",
    "prefixes": [
        "libcamera-devel"
    ]
}