get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 87830,
    "url": "http://patchwork.dpdk.org/api/patches/87830/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20210209150621.1829753-1-ferruh.yigit@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20210209150621.1829753-1-ferruh.yigit@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210209150621.1829753-1-ferruh.yigit@intel.com",
    "date": "2021-02-09T15:06:20",
    "name": "log/linux: make default output stderr",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "f1baeeb85d69e8fa19d2595f1bcbe4fe81485ed9",
    "submitter": {
        "id": 324,
        "url": "http://patchwork.dpdk.org/api/people/324/?format=api",
        "name": "Ferruh Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20210209150621.1829753-1-ferruh.yigit@intel.com/mbox/",
    "series": [
        {
            "id": 15218,
            "url": "http://patchwork.dpdk.org/api/series/15218/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=15218",
            "date": "2021-02-09T15:06:20",
            "name": "log/linux: make default output stderr",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/15218/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/87830/comments/",
    "check": "warning",
    "checks": "http://patchwork.dpdk.org/api/patches/87830/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 21201A0549;\n\tTue,  9 Feb 2021 16:06:29 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9F6734014E;\n\tTue,  9 Feb 2021 16:06:28 +0100 (CET)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id 4E49E40147;\n Tue,  9 Feb 2021 16:06:25 +0100 (CET)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 09 Feb 2021 07:06:24 -0800",
            "from silpixa00399752.ir.intel.com (HELO\n silpixa00399752.ger.corp.intel.com) ([10.237.222.27])\n by fmsmga001.fm.intel.com with ESMTP; 09 Feb 2021 07:06:23 -0800"
        ],
        "IronPort-SDR": [
            "\n 6SAywtD4PaTEygu4/45SkmSubgtlpgh6995C+q4iZPd2rsQ0hh/BPUatImvWFxxmejxtkR55T4\n 0s5vGWFT5CJg==",
            "\n sXbglYLR6SUzhkcQ5hdLwLfD2DyGJMieRu/2vN61GaCVYU4LQOp7M0NYeCAhd3dIWx1rPKklYl\n wMqZNTgO+tdA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9889\"; a=\"181955922\"",
            "E=Sophos;i=\"5.81,165,1610438400\"; d=\"scan'208\";a=\"181955922\"",
            "E=Sophos;i=\"5.81,165,1610438400\"; d=\"scan'208\";a=\"488148309\""
        ],
        "X-ExtLoop1": "1",
        "From": "Ferruh Yigit <ferruh.yigit@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Ferruh Yigit <ferruh.yigit@intel.com>, stable@dpdk.org,\n Alexandre Ferrieux <alexandre.ferrieux@orange.com>,\n David Marchand <david.marchand@redhat.com>",
        "Date": "Tue,  9 Feb 2021 15:06:20 +0000",
        "Message-Id": "<20210209150621.1829753-1-ferruh.yigit@intel.com>",
        "X-Mailer": "git-send-email 2.29.2",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH] log/linux: make default output stderr",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "In Linux by default DPDK log goes to stdout, as well as syslog.\n\nIt is possible for an application to change the library output stream\nvia 'rte_openlog_stream()' API, to set it to stderr, it can be used as:\nrte_openlog_stream(stderr);\n\nBut still updating the default log output to 'stderr'.\n\nBugzilla ID: 8\nFixes: af75078fece3 (\"first public release\")\nCc: stable@dpdk.org\n\nReported-by: Alexandre Ferrieux <alexandre.ferrieux@orange.com>\nSigned-off-by: Ferruh Yigit <ferruh.yigit@intel.com>\n---\nCc: David Marchand <david.marchand@redhat.com>\n---\n lib/librte_eal/linux/eal_log.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/lib/librte_eal/linux/eal_log.c b/lib/librte_eal/linux/eal_log.c\nindex 43c8460bfb07..2095df74c52c 100644\n--- a/lib/librte_eal/linux/eal_log.c\n+++ b/lib/librte_eal/linux/eal_log.c\n@@ -27,9 +27,9 @@ console_log_write(__rte_unused void *c, const char *buf, size_t size)\n {\n \tssize_t ret;\n \n-\t/* write on stdout */\n-\tret = fwrite(buf, 1, size, stdout);\n-\tfflush(stdout);\n+\t/* write on stderr */\n+\tret = fwrite(buf, 1, size, stderr);\n+\tfflush(stderr);\n \n \t/* Syslog error levels are from 0 to 7, so subtract 1 to convert */\n \tsyslog(rte_log_cur_msg_loglevel() - 1, \"%.*s\", (int)size, buf);\n",
    "prefixes": []
}