get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2102555,
    "url": "http://patchwork.ozlabs.org/api/patches/2102555/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250625132108.3292932-8-jerome.forissier@linaro.org/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20250625132108.3292932-8-jerome.forissier@linaro.org>",
    "list_archive_url": null,
    "date": "2025-06-25T13:19:15",
    "name": "[v4,07/13] lwip: dns: do not print IP address when a variable is specified",
    "commit_ref": "1361d9f4f00ad0a6e481cc947b75e8788982878f",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "bc75e76a0282e319c8ddb617ccdfc9d143737322",
    "submitter": {
        "id": 69192,
        "url": "http://patchwork.ozlabs.org/api/people/69192/?format=api",
        "name": "Jerome Forissier",
        "email": "jerome.forissier@linaro.org"
    },
    "delegate": {
        "id": 157425,
        "url": "http://patchwork.ozlabs.org/api/users/157425/?format=api",
        "username": "jforissier",
        "first_name": "Jerome",
        "last_name": "Forissier",
        "email": "jerome.forissier@linaro.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20250625132108.3292932-8-jerome.forissier@linaro.org/mbox/",
    "series": [
        {
            "id": 462405,
            "url": "http://patchwork.ozlabs.org/api/series/462405/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=462405",
            "date": "2025-06-25T13:19:11",
            "name": "sntp for NET_LWIP",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/462405/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2102555/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2102555/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=YvwBygDc;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=linaro.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.b=\"YvwBygDc\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=linaro.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=jerome.forissier@linaro.org"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature ECDSA (secp384r1))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4bS2YV3tH0z20Cm\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 25 Jun 2025 23:22:38 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id BE08482E8E;\n\tWed, 25 Jun 2025 15:21:46 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id A30AD82CBC; Wed, 25 Jun 2025 15:21:41 +0200 (CEST)",
            "from mail-wr1-x433.google.com (mail-wr1-x433.google.com\n [IPv6:2a00:1450:4864:20::433])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id B007C82E08\n for <u-boot@lists.denx.de>; Wed, 25 Jun 2025 15:21:34 +0200 (CEST)",
            "by mail-wr1-x433.google.com with SMTP id\n ffacd0b85a97d-3a6d77b43c9so3898172f8f.3\n for <u-boot@lists.denx.de>; Wed, 25 Jun 2025 06:21:34 -0700 (PDT)",
            "from builder.. ([2a01:e0a:3cb:7bb0:af71:dfb2:66ef:80c3])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-3a6e8068fd0sm4760042f8f.38.2025.06.25.06.21.32\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 25 Jun 2025 06:21:32 -0700 (PDT)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1750857694; x=1751462494; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=zw2o6MnolNwOFvuGvEw5Nc0YvBVz9NEXlG0S6QtGMrM=;\n b=YvwBygDc3L8hKmxMIMRc9D2aG9mxqRtEc0D4nYVPa6GBPHXZ5lJqOmvzUjGOVOwelT\n i5myc4UA7obxOnDP9rxO7EaIFC1VYBwfQ7jSuw3c05V/c9Dpk+kK41TN6GbHsue2+yCj\n +P+Osr7mIVgGRLNaiqQ2v4kcPglphNHz5tShPWHgZ5BqHEtISqUqIosSHJ8xlB4vsKmD\n WuVbZXfJnW81oAKiMar7bseTXTR0vMl7u3xGpmtqYeCjspsaEaRSVL3yr53PXPEyU3S9\n O7PEaHdFQiZMnkGefPeKHZ4nw3y3+JSw9T0lzEZGYWWMfa22uewtXIGj1QaLNdgejjig\n d3mg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1750857694; x=1751462494;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=zw2o6MnolNwOFvuGvEw5Nc0YvBVz9NEXlG0S6QtGMrM=;\n b=YS8gz8ywGK9p+FC4Ss97BJfiMNunZtR3jss7eGS7BPdtXmJaVctXDfiGkslCdLyik+\n Kl8gx9ocXQdYGIXM//k1w9BH74GLdexeRBCqLSxkdfhcy9LcB02JlXs46sWARtTzoLe0\n lGVQM8f19MRKjdYVK+jp4gH/XSdhYZMNFR2mqlF+SJ37O7oyMTxOTneplU4LqEnU0Nmv\n NH39u9o8o2m1qOd8KXyuDlHowbj+JOh63nkUc59qpAr0F/LjsSDpf/QtHVXlHROSEfdA\n 3B1HMslsUW5sEijn4+AyO1WGxlakA+Q1WC4T58hU/zB/P3qDdZp2c1cYGOG9knt7Uu5f\n u/cQ==",
        "X-Gm-Message-State": "AOJu0YyV5iBfBf8FacNHgxoMybXlsRWsoJP+7jB8esLQNa5o3qTVjb+f\n GKZ2abjQAUBo5f14mQjwXvbuTcX/pE+ejgWTSqwDUnq1hlb9r9pa/y47192vQw8CyO2XZ8s67sC\n yyjih+Hk=",
        "X-Gm-Gg": "ASbGncu0fNB97obTmNB/+pvB+25t+/oRBwp5ceyOauMirMPpgCOvXEHgx1Wr+Bdv03V\n EcHLyOTCBkIgVV1IoLOa+04W1aWDTfJd81qRGmNPbCk4hmhORlAl96lkx/3t39F4HgqKIW42RuD\n oVBFGo89v3UyqQ/wPwZjYoPspoWoF0ivnJdTZqECJQtqDAS5JdqQb2jtbY6Leksb8Sw+lgeYRil\n MVbOxp1oMG68wEhq0WBGBcG+Niy0S675IgWO6C59S7Uo66qvMMWtc3yUwARpaH1Pyb9KSCPjbw0\n JmQp+wjhpdMHeHUKJbUIqpVGin7Ch0tYC8DjMUEWNvuN0CSjD3G8g21x/waZYEWXyV3iveM=",
        "X-Google-Smtp-Source": "\n AGHT+IGVpi0jByYj7ihiWshL5JOncsozZDcMpuTXAKV9ajoncN712ZxMokCytx/ABf70iCUFAhheLQ==",
        "X-Received": "by 2002:a05:6000:26c8:b0:3a4:f6ed:767a with SMTP id\n ffacd0b85a97d-3a6ed63783bmr2540299f8f.38.1750857693801;\n Wed, 25 Jun 2025 06:21:33 -0700 (PDT)",
        "From": "Jerome Forissier <jerome.forissier@linaro.org>",
        "To": "U-Boot mailing list <u-boot@lists.denx.de>",
        "Cc": "Jerome Forissier <jerome.forissier@linaro.org>,\n Heinrich Schuchardt <xypron.glpk@gmx.de>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>",
        "Subject": "[PATCH v4 07/13] lwip: dns: do not print IP address when a variable\n is specified",
        "Date": "Wed, 25 Jun 2025 15:19:15 +0200",
        "Message-ID": "<20250625132108.3292932-8-jerome.forissier@linaro.org>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20250625132108.3292932-1-jerome.forissier@linaro.org>",
        "References": "<20250625132108.3292932-1-jerome.forissier@linaro.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.39",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>",
        "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de",
        "X-Virus-Status": "Clean"
    },
    "content": "When calling \"dns <hostname> <varname>\", do not print out the IP address\nof <hostname> onto the console. Print it only when no variable is\npassed. The reason is to be able to call do_dns() from another command\nin need of the DNS services without polluting the output.\n\nSigned-off-by: Jerome Forissier <jerome.forissier@linaro.org>\n---\n\n(no changes since v2)\n\nChanges in v2:\n- New patch\n\n cmd/lwip/dns.c | 7 ++++---\n 1 file changed, 4 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/cmd/lwip/dns.c b/cmd/lwip/dns.c\nindex 4689ecce513..344f9a68bb9 100644\n--- a/cmd/lwip/dns.c\n+++ b/cmd/lwip/dns.c\n@@ -42,8 +42,6 @@ static void dns_cb(const char *name, const ip_addr_t *ipaddr, void *arg)\n \n \tif (dns_cb_arg->var)\n \t\tenv_set(dns_cb_arg->var, ipstr);\n-\n-\tprintf(\"%s\\n\", ipstr);\n }\n \n static int dns_loop(struct udevice *udev, const char *name, const char *var)\n@@ -107,8 +105,11 @@ static int dns_loop(struct udevice *udev, const char *name, const char *var)\n \n \tnet_lwip_remove_netif(netif);\n \n-\tif (dns_cb_arg.done && dns_cb_arg.host_ipaddr.addr != 0)\n+\tif (dns_cb_arg.done && dns_cb_arg.host_ipaddr.addr != 0) {\n+\t\tif (!var)\n+\t\t\tprintf(\"%s\\n\", ipaddr_ntoa(&ipaddr));\n \t\treturn CMD_RET_SUCCESS;\n+\t}\n \n \treturn CMD_RET_FAILURE;\n }\n",
    "prefixes": [
        "v4",
        "07/13"
    ]
}