get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 42171,
    "url": "http://patches.dpdk.org/api/patches/42171/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/219ee773c228fc32b7213bca5073258008126a38.1530655929.git.gaetan.rivet@6wind.com/",
    "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": "<219ee773c228fc32b7213bca5073258008126a38.1530655929.git.gaetan.rivet@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/219ee773c228fc32b7213bca5073258008126a38.1530655929.git.gaetan.rivet@6wind.com",
    "date": "2018-07-03T22:14:45",
    "name": "[v9,02/27] kvargs: remove error logs",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e37dfae8b78894130bb6b93e61b788f220c6414e",
    "submitter": {
        "id": 269,
        "url": "http://patches.dpdk.org/api/people/269/?format=api",
        "name": "Gaëtan Rivet",
        "email": "gaetan.rivet@6wind.com"
    },
    "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/219ee773c228fc32b7213bca5073258008126a38.1530655929.git.gaetan.rivet@6wind.com/mbox/",
    "series": [
        {
            "id": 383,
            "url": "http://patches.dpdk.org/api/series/383/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=383",
            "date": "2018-07-03T22:14:43",
            "name": "Device querying",
            "version": 9,
            "mbox": "http://patches.dpdk.org/series/383/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/42171/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/42171/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 1940F1BE56;\n\tWed,  4 Jul 2018 00:15:40 +0200 (CEST)",
            "from mail-wm0-f52.google.com (mail-wm0-f52.google.com\n\t[74.125.82.52]) by dpdk.org (Postfix) with ESMTP id B6BBD1BE1D\n\tfor <dev@dpdk.org>; Wed,  4 Jul 2018 00:15:36 +0200 (CEST)",
            "by mail-wm0-f52.google.com with SMTP id p11-v6so3723194wmc.4\n\tfor <dev@dpdk.org>; Tue, 03 Jul 2018 15:15:36 -0700 (PDT)",
            "from bidouze.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com.\n\t[62.23.145.78]) by smtp.gmail.com with ESMTPSA id\n\ti190-v6sm3771084wmd.33.2018.07.03.15.15.35\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 03 Jul 2018 15:15:35 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:in-reply-to:references;\n\tbh=o05wWIBefdI3lkZ64u5iCyqaWgbiAT5ocS/Pprxx5hI=;\n\tb=mdw+xlma3cEjaneIFfxHNtrPZ7vCG2p9hgVevtdO7+psCmLq63pCZE0AXM2t8eR62b\n\tCdoBTzj16tT5L0byZ2F7mPE/jFbtx54hZndVIn3OmvvBY4zYUO7uzKJsdHgNE9jmkdol\n\te/rfhc6nJecfhg+bIraHt9Kim/IX4/1Hf5SHTWk0cZW7T6SYiXQY5JpyexxeX0kSIZ9g\n\tFJ8eEtBIPwatEKk+w/E6khJcNTJh2jprUQ0cze7ihMrcJFkC91t94Djx055mVQFyKRuZ\n\tfV6MiQVDmQdShzitgRyOs7yJCcDy+NMZQp4Kt4fUBR6kqQiG50Z7NonEVDb07EGHZIsw\n\tUjKQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:in-reply-to:references;\n\tbh=o05wWIBefdI3lkZ64u5iCyqaWgbiAT5ocS/Pprxx5hI=;\n\tb=qMWFeH34vrsZbBpfXCNexUJ6yPM1WfuZ68NahsB6zwHELZmm6aOSPWUCziCsg0A4eB\n\tBZBEK3SlmR9+GCQQyGlF2rggexTu1ThuNS9kIU3z1lEmtl2iLV/md8gtS00rnRHTEgjd\n\tw1Myx9Bra75VU7QMCOKz6NITpbGS/6ZJQMmndBpPkiJoSMqWGYWSoJnp3RpJZ+bMdBP0\n\tXr1YlgXpTWL+/bPCpj271n1auCgQ0fmgsuJXU/ZM7jJ/M5EJDTM+qxhU4S4i4UK2MVOR\n\trAH3PRw1sASAAqf6i8WowEQ6wmTiZ6y30T3UthXqzFp1XS9JPl1+nCOZ+UnIymvwoK4q\n\tPJXA==",
        "X-Gm-Message-State": "APt69E05a1tYVZu80fxKJB7Ps5DuV4cwN50IUvJdqtvL9SFE0U1N4OCx\n\tECeXyacdwOkCoGFWn9+2f4J0o6S5",
        "X-Google-Smtp-Source": "AAOMgpfPWfI5R4AMPEwX5xwfiImxzaNulgTJG2TWab9vj46b5MsDpvXVgHji01MNqMk995pCkjEIgw==",
        "X-Received": "by 2002:a1c:e541:: with SMTP id\n\tc62-v6mr9358041wmh.154.1530656136037; \n\tTue, 03 Jul 2018 15:15:36 -0700 (PDT)",
        "From": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "Date": "Wed,  4 Jul 2018 00:14:45 +0200",
        "Message-Id": "<219ee773c228fc32b7213bca5073258008126a38.1530655929.git.gaetan.rivet@6wind.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": [
            "<cover.1530655929.git.gaetan.rivet@6wind.com>",
            "<cover.1530655929.git.gaetan.rivet@6wind.com>"
        ],
        "References": [
            "<cover.1521124599.git.gaetan.rivet@6wind.com>\n\t<cover.1530655929.git.gaetan.rivet@6wind.com>",
            "<cover.1530655929.git.gaetan.rivet@6wind.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH v9 02/27] kvargs: remove error logs",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Error logs in kvargs parsing should be better handled in components\ncalling the library.\n\nThis library must be as lean as possible.\n\nSigned-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>\n---\n lib/librte_kvargs/rte_kvargs.c | 22 +++++-----------------\n 1 file changed, 5 insertions(+), 17 deletions(-)",
    "diff": "diff --git a/lib/librte_kvargs/rte_kvargs.c b/lib/librte_kvargs/rte_kvargs.c\nindex d92a5f9dc..747f14964 100644\n--- a/lib/librte_kvargs/rte_kvargs.c\n+++ b/lib/librte_kvargs/rte_kvargs.c\n@@ -6,7 +6,6 @@\n #include <string.h>\n #include <stdlib.h>\n \n-#include <rte_log.h>\n #include <rte_string_fns.h>\n \n #include \"rte_kvargs.h\"\n@@ -28,29 +27,22 @@ rte_kvargs_tokenize(struct rte_kvargs *kvlist, const char *params)\n \t * to pass to rte_strsplit\n \t */\n \tkvlist->str = strdup(params);\n-\tif (kvlist->str == NULL) {\n-\t\tRTE_LOG(ERR, PMD, \"Cannot parse arguments: not enough memory\\n\");\n+\tif (kvlist->str == NULL)\n \t\treturn -1;\n-\t}\n \n \t/* browse each key/value pair and add it in kvlist */\n \tstr = kvlist->str;\n \twhile ((str = strtok_r(str, RTE_KVARGS_PAIRS_DELIM, &ctx1)) != NULL) {\n \n \t\ti = kvlist->count;\n-\t\tif (i >= RTE_KVARGS_MAX) {\n-\t\t\tRTE_LOG(ERR, PMD, \"Cannot parse arguments: list full\\n\");\n+\t\tif (i >= RTE_KVARGS_MAX)\n \t\t\treturn -1;\n-\t\t}\n \n \t\tkvlist->pairs[i].key = strtok_r(str, RTE_KVARGS_KV_DELIM, &ctx2);\n \t\tkvlist->pairs[i].value = strtok_r(NULL, RTE_KVARGS_KV_DELIM, &ctx2);\n-\t\tif (kvlist->pairs[i].key == NULL || kvlist->pairs[i].value == NULL) {\n-\t\t\tRTE_LOG(ERR, PMD,\n-\t\t\t\t\"Cannot parse arguments: wrong key or value\\n\"\n-\t\t\t\t\"params=<%s>\\n\", params);\n+\t\tif (kvlist->pairs[i].key == NULL ||\n+\t\t    kvlist->pairs[i].value == NULL)\n \t\t\treturn -1;\n-\t\t}\n \n \t\tkvlist->count++;\n \t\tstr = NULL;\n@@ -89,12 +81,8 @@ check_for_valid_keys(struct rte_kvargs *kvlist,\n \tfor (i = 0; i < kvlist->count; i++) {\n \t\tpair = &kvlist->pairs[i];\n \t\tret = is_valid_key(valid, pair->key);\n-\t\tif (!ret) {\n-\t\t\tRTE_LOG(ERR, PMD,\n-\t\t\t\t\"Error parsing device, invalid key <%s>\\n\",\n-\t\t\t\tpair->key);\n+\t\tif (!ret)\n \t\t\treturn -1;\n-\t\t}\n \t}\n \treturn 0;\n }\n",
    "prefixes": [
        "v9",
        "02/27"
    ]
}