get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 105370,
    "url": "http://patches.dpdk.org/api/patches/105370/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211223192158.143591-1-stephen@networkplumber.org/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20211223192158.143591-1-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211223192158.143591-1-stephen@networkplumber.org",
    "date": "2021-12-23T19:21:58",
    "name": "eal: log hugepage create errors with filename",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "a3cb7ebfb6e3d9348482bcb594d6d80fc193a21f",
    "submitter": {
        "id": 27,
        "url": "http://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20211223192158.143591-1-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 21020,
            "url": "http://patches.dpdk.org/api/series/21020/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=21020",
            "date": "2021-12-23T19:21:58",
            "name": "eal: log hugepage create errors with filename",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/21020/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/105370/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/105370/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 5BBF4A0350;\n\tThu, 23 Dec 2021 20:22:05 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id DCFDA4068C;\n\tThu, 23 Dec 2021 20:22:04 +0100 (CET)",
            "from mail-pj1-f44.google.com (mail-pj1-f44.google.com\n [209.85.216.44]) by mails.dpdk.org (Postfix) with ESMTP id A4BBE4067B\n for <dev@dpdk.org>; Thu, 23 Dec 2021 20:22:03 +0100 (CET)",
            "by mail-pj1-f44.google.com with SMTP id\n z9-20020a17090a7b8900b001b13558eadaso9568490pjc.4\n for <dev@dpdk.org>; Thu, 23 Dec 2021 11:22:03 -0800 (PST)",
            "from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199])\n by smtp.gmail.com with ESMTPSA id\n v1sm6597051pfg.169.2021.12.23.11.22.01\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 23 Dec 2021 11:22:01 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20210112.gappssmtp.com; s=20210112;\n h=from:to:cc:subject:date:message-id:mime-version\n :content-transfer-encoding;\n bh=NNYogc7Gg03PsBizkei9y2dtcFffujOwX2OYthlolvE=;\n b=33xkcq8fB+tRfvnpXVmYqwYyd1LYVUeySUtTHOKHoI/60HI0CwVDmnevWJFNM9kpWu\n HwbiIo2Npo3jZr0/13p2sGtjtvlF0bR4kiDkDdfqfqhHG0ADOIM5oKQY0WZP9JAIB/ff\n Mwvk4nzrPsPXLGg6yTHoawOHMQWuXXEfYJ1/IAHLtb8nhOFJl7BvgRK2qiEemcZfJab+\n 4x1sEWuLHiJYBR50WBkB6Ym9Mmmm70PUGYf05Cu3Jl94GSG93c7nauAsxJ0ZZ4Gtt3bk\n Aem5B1OkVuZe372xB7e8v1qFrD6TZ/HkXcNeAy5lPl96ClbaXbNQdwaCN5vU/2w/vyh/\n gq1A==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version\n :content-transfer-encoding;\n bh=NNYogc7Gg03PsBizkei9y2dtcFffujOwX2OYthlolvE=;\n b=0vRlSY7uXZ2NwvxoPDD3l233DFDSkoX/vSLSCzdUfSukWW0GQhYCmkwwOE+XH0lioC\n stLCEKXUJvh1bziXWz7/ca96jpTukgSM4bxpIZFhK255cTs6dNf7QIHsfzMk3scWrpWO\n MXcLrcT/aeSP91ZoZUGwjcPoJvG4+ZCxU9nDB+12GRoSn6Ru8V9PW0BLXvfgvXE4AIRX\n X8Hf3GYFGHz9wrFh6S8yYNpetxyGvKKzCMXrVGMOhLCiofARVMIoiMu/CsyXl0DGfeCg\n 0SWcJBzGiIPEQ5Af7z5mjMhJJWXLRhHNiLvAY/I70ufR2rgDUj26fEiHF/CVmlOSNOOg\n QKsQ==",
        "X-Gm-Message-State": "AOAM531RAR8B9sYHTrsSwZVXlljV5yOfdqN4Daynv4t8y2uWbTGBr2u7\n zkKz+VIyr19qoGN2+IoO1RFLaVejOCWObA==",
        "X-Google-Smtp-Source": "\n ABdhPJy8/qPwTzSh2NbDsL+0BJ8lCPU8qBKlPwPqAr7a144EnrQUknMoGFetLao+g0nDDp0Q9nuX/Q==",
        "X-Received": "by 2002:a17:90a:ba03:: with SMTP id\n s3mr4335393pjr.219.1640287322248;\n Thu, 23 Dec 2021 11:22:02 -0800 (PST)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>",
        "Subject": "[PATCH] eal: log hugepage create errors with filename",
        "Date": "Thu, 23 Dec 2021 11:21:58 -0800",
        "Message-Id": "<20211223192158.143591-1-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.30.2",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "While debugging running DPDK service in a container, it is\nuseful to see which file creation failed.  Don't hide this\nfailure with DEBUG.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n lib/eal/linux/eal_memalloc.c | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/lib/eal/linux/eal_memalloc.c b/lib/eal/linux/eal_memalloc.c\nindex 337f2bc739cf..16b58d861b31 100644\n--- a/lib/eal/linux/eal_memalloc.c\n+++ b/lib/eal/linux/eal_memalloc.c\n@@ -308,8 +308,8 @@ get_seg_fd(char *path, int buflen, struct hugepage_info *hi,\n \t\tif (fd < 0) {\n \t\t\tfd = open(path, O_CREAT | O_RDWR, 0600);\n \t\t\tif (fd < 0) {\n-\t\t\t\tRTE_LOG(ERR, EAL, \"%s(): open failed: %s\\n\",\n-\t\t\t\t\t__func__, strerror(errno));\n+\t\t\t\tRTE_LOG(ERR, EAL, \"%s(): open '%s' failed: %s\\n\",\n+\t\t\t\t\t__func__, path, strerror(errno));\n \t\t\t\treturn -1;\n \t\t\t}\n \t\t\t/* take out a read lock and keep it indefinitely */\n@@ -346,8 +346,8 @@ get_seg_fd(char *path, int buflen, struct hugepage_info *hi,\n \n \t\t\tfd = open(path, O_CREAT | O_RDWR, 0600);\n \t\t\tif (fd < 0) {\n-\t\t\t\tRTE_LOG(DEBUG, EAL, \"%s(): open failed: %s\\n\",\n-\t\t\t\t\t__func__, strerror(errno));\n+\t\t\t\tRTE_LOG(ERR, EAL, \"%s(): open '%s' failed: %s\\n\",\n+\t\t\t\t\t__func__, path, strerror(errno));\n \t\t\t\treturn -1;\n \t\t\t}\n \t\t\t/* take out a read lock */\n",
    "prefixes": []
}