Show a patch.

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

{
    "id": 337,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/337/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/337/",
    "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": "<20190122234505.32634-4-niklas.soderlund@ragnatech.se>",
    "date": "2019-01-22T23:45:00",
    "name": "[libcamera-devel,3/8] libcamera: pipelines: add log category for each pipeline",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "9ccc35a0a956566df91d3c81346f90d782ab6c27",
    "submitter": {
        "id": 5,
        "url": "https://patchwork.libcamera.org/api/1.1/people/5/?format=api",
        "name": "Niklas Söderlund",
        "email": "niklas.soderlund@ragnatech.se"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/337/mbox/",
    "series": [
        {
            "id": 118,
            "url": "https://patchwork.libcamera.org/api/1.1/series/118/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=118",
            "date": "2019-01-22T23:44:57",
            "name": "libcamera: add basic support for Streams and format configuration",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/118/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/337/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/337/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<niklas.soderlund@ragnatech.se>",
        "Received": [
            "from bin-mail-out-05.binero.net (bin-mail-out-05.binero.net\n\t[195.74.38.228])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id CB54660C83\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 23 Jan 2019 00:46:39 +0100 (CET)",
            "from bismarck.berto.se (unknown [89.233.230.99])\n\tby bin-vsp-out-03.atm.binero.net (Halon) with ESMTPA\n\tid e984f989-1e9f-11e9-911a-0050569116f7;\n\tWed, 23 Jan 2019 00:46:17 +0100 (CET)"
        ],
        "X-Halon-ID": "e984f989-1e9f-11e9-911a-0050569116f7",
        "Authorized-sender": "niklas@soderlund.pp.se",
        "From": "=?utf-8?q?Niklas_S=C3=B6derlund?= <niklas.soderlund@ragnatech.se>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Wed, 23 Jan 2019 00:45:00 +0100",
        "Message-Id": "<20190122234505.32634-4-niklas.soderlund@ragnatech.se>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20190122234505.32634-1-niklas.soderlund@ragnatech.se>",
        "References": "<20190122234505.32634-1-niklas.soderlund@ragnatech.se>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH 3/8] libcamera: pipelines: add log\n\tcategory for each pipeline",
        "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, 22 Jan 2019 23:46:40 -0000"
    },
    "content": "The VIMC and UVC pipeline handlers lacked a dedicated log category.\n\nSigned-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>\n---\n src/libcamera/pipeline/uvcvideo.cpp | 3 +++\n src/libcamera/pipeline/vimc.cpp     | 3 +++\n 2 files changed, 6 insertions(+)",
    "diff": "diff --git a/src/libcamera/pipeline/uvcvideo.cpp b/src/libcamera/pipeline/uvcvideo.cpp\nindex a02f3671d22c5f79..3e4745ba498e7160 100644\n--- a/src/libcamera/pipeline/uvcvideo.cpp\n+++ b/src/libcamera/pipeline/uvcvideo.cpp\n@@ -9,11 +9,14 @@\n #include <libcamera/camera_manager.h>\n \n #include \"device_enumerator.h\"\n+#include \"log.h\"\n #include \"media_device.h\"\n #include \"pipeline_handler.h\"\n \n namespace libcamera {\n \n+LOG_DEFINE_CATEGORY(UVC)\n+\n class PipelineHandlerUVC : public PipelineHandler\n {\n public:\ndiff --git a/src/libcamera/pipeline/vimc.cpp b/src/libcamera/pipeline/vimc.cpp\nindex d732ac21cae1a84b..e8dbc0932ab0198a 100644\n--- a/src/libcamera/pipeline/vimc.cpp\n+++ b/src/libcamera/pipeline/vimc.cpp\n@@ -9,11 +9,14 @@\n #include <libcamera/camera_manager.h>\n \n #include \"device_enumerator.h\"\n+#include \"log.h\"\n #include \"media_device.h\"\n #include \"pipeline_handler.h\"\n \n namespace libcamera {\n \n+LOG_DEFINE_CATEGORY(VIMC)\n+\n class PipeHandlerVimc : public PipelineHandler\n {\n public:\n",
    "prefixes": [
        "libcamera-devel",
        "3/8"
    ]
}