get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2216572,
    "url": "http://patchwork.ozlabs.org/api/patches/2216572/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260326201804.3881-1-david.laight.linux@gmail.com/",
    "project": {
        "id": 8,
        "url": "http://patchwork.ozlabs.org/api/projects/8/?format=api",
        "name": "Linux ext4 filesystem development",
        "link_name": "linux-ext4",
        "list_id": "linux-ext4.vger.kernel.org",
        "list_email": "linux-ext4@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260326201804.3881-1-david.laight.linux@gmail.com>",
    "list_archive_url": null,
    "date": "2026-03-26T20:18:04",
    "name": "[next] ext4: Fix diagnostic printf formats",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "e99f0c8464969a90f8f004fb7e5a75a1bd0851b4",
    "submitter": {
        "id": 89989,
        "url": "http://patchwork.ozlabs.org/api/people/89989/?format=api",
        "name": "David Laight",
        "email": "david.laight.linux@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260326201804.3881-1-david.laight.linux@gmail.com/mbox/",
    "series": [
        {
            "id": 497645,
            "url": "http://patchwork.ozlabs.org/api/series/497645/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=497645",
            "date": "2026-03-26T20:18:04",
            "name": "[next] ext4: Fix diagnostic printf formats",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497645/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2216572/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2216572/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <SRS0=495H=B2=vger.kernel.org=linux-ext4+bounces-15464-patchwork-incoming=ozlabs.org@ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-ext4@vger.kernel.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "patchwork-incoming@ozlabs.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=m/pO3B0x;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=150.107.74.76; helo=mail.ozlabs.org;\n envelope-from=srs0=495h=b2=vger.kernel.org=linux-ext4+bounces-15464-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c15:e001:75::12fc:5321\"\n arc.chain=subspace.kernel.org",
            "gandalf.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "gandalf.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=m/pO3B0x;\n\tdkim-atps=neutral",
            "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15464-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"m/pO3B0x\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.128.54",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com"
        ],
        "Received": [
            "from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fhZpm3McKz1yFp\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 07:18:24 +1100 (AEDT)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fhZpm2wsTz4w9r\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 07:18:24 +1100 (AEDT)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4fhZpm2rHbz4wM6; Fri, 27 Mar 2026 07:18:24 +1100 (AEDT)",
            "from sin.lore.kernel.org (sin.lore.kernel.org\n [IPv6:2600:3c15:e001:75::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby gandalf.ozlabs.org (Postfix) with ESMTPS id 4fhZpj1Kyqz4w9r\n\tfor <patchwork-incoming@ozlabs.org>; Fri, 27 Mar 2026 07:18:21 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id D3B65300BC97\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 26 Mar 2026 20:18:19 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id A0C3D39FCA8;\n\tThu, 26 Mar 2026 20:18:17 +0000 (UTC)",
            "from mail-wm1-f54.google.com (mail-wm1-f54.google.com\n [209.85.128.54])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 98817224AF2\n\tfor <linux-ext4@vger.kernel.org>; Thu, 26 Mar 2026 20:18:15 +0000 (UTC)",
            "by mail-wm1-f54.google.com with SMTP id\n 5b1f17b1804b1-486fc4725f0so12430635e9.1\n        for <linux-ext4@vger.kernel.org>;\n Thu, 26 Mar 2026 13:18:15 -0700 (PDT)",
            "from snowdrop.snailnet.com (82-69-66-36.dsl.in-addr.zen.co.uk.\n [82.69.66.36])\n        by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-48722fa8dc6sm90653825e9.1.2026.03.26.13.18.13\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Thu, 26 Mar 2026 13:18:13 -0700 (PDT)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1774556304; cv=pass;\n\tb=dWNOxClf7EyRsXxJwFTMqtldVdlvnZ3YKoUcglCIbNTcIPPgXKTvN4o6+wGNgEqyxd1EdeDtrmpAPsgUZnUNe/nK23ACPXVGE7jPscavh94PrORXlXyf5iAJ4kP6qxIcMeDY9W/eGjKPB4PSSS2Rh0+kVHtW39VF4Q4zQVF4az8+xCojuh+5IxUNtNw3DVyBgak/yq5V5ZcRY3oUoue0P5NzD0Yinr3M68dnFF097iiwo9LtpXO6Taew6tUtUucB5x5Cwx5JHXjiTf3SEVJfBFZSZXh8WN4DBtUa9t47hU63GpGshtQeN/JH4ybeM19KG4Yyh8iCEMvsSeEJ6sY4DQ==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774556297; cv=none;\n b=sDLc/FBlZwqWtZfqht0FigL3deEq3rBq6VCLEhUHGe7Nmg96TIJRWYEEnSTqYbmg4ROHkt7f/EzBkUVzAWv2QjJrxGpGGR8Jz/IdYMgWpGMozdFrSq1uGtgCYeyNJ9m1IJKgU64K02Q33F148UyAysBbCOEiQSunYqLvJnGXYQQ="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1774556304; c=relaxed/relaxed;\n\tbh=d+yR8XT8nASwGHMWYhsKkkmFjd2K2R90pTX2kvttbtQ=;\n\th=From:To:Cc:Subject:Date:Message-Id:MIME-Version;\n b=hK8fS+OKjtUlmhAi5fBnhc0rs2wVgs2b3Jp724vnbrtlDCmNkQP2sOui82eIGXDyjwmvobv7WHek5n2z6oCksqSfKoGFqSb6JHDgR3xm+RTfZOWZGQJJCoxsVAmOdz/r5/Ohieue28v5FRS4LktVJv9iUSpZLEglYvVa5JQMxFislQG6ZrRk7XNgzru379JHGAuJ5ETudCnWsJy56dvSyhCA9UHPDAdLNmYLVqZGRZTB9BGJVkPxT3Xp9248UPDnwSci5SDZuebGo72LvbQnNWXwy7UCadMebxuckKN5Zg2ddt4zH+szgyNht+oSblJ20C2dFvA5zJVfPElHARbyxg==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774556297; c=relaxed/simple;\n\tbh=psa8oqtuzo1Fd6KKuBsX4zIThnmsNywLbmjROmFxDYE=;\n\th=From:To:Cc:Subject:Date:Message-Id:MIME-Version;\n b=iy4tJy2vKYpUNTgw+MD2jSPRwX8j7zzRai3VJJiCr+M8yQMf1tq3UDbZLsAqKlIidH3CpAjPeWPoX/NE0qCLNlDiYiqvxi5b3OgGamSpvZ22EhjJ0vFO98bcLmetzBR97CLYN7iwLv5F8+8hkBTnBCzgrc/F6QonNk5oGe3jacg="
        ],
        "ARC-Authentication-Results": [
            "i=2; gandalf.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com; dkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=m/pO3B0x; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15464-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org",
            "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=m/pO3B0x; arc=none smtp.client-ip=209.85.128.54"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1774556294; x=1775161094;\n darn=vger.kernel.org;\n        h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n         :to:from:from:to:cc:subject:date:message-id:reply-to;\n        bh=d+yR8XT8nASwGHMWYhsKkkmFjd2K2R90pTX2kvttbtQ=;\n        b=m/pO3B0xrilhHCDLjGlVSi7c/8aG9FmyzwGjujOKAfIwwRhdqgYeWQmqgms5hsA7Xx\n         kRWuHqJyPDGM6nNGS/7hgF+mzQF1or/GgwN1BZ5VV2jB9iilezJNjc22kajnSdiLuPSi\n         RNTUNNNPt95Q/lR7m8htdqUrqA+NIvSc5DycHNlxIQQuW1A8S1WyXFeCDqcNAQXaXspV\n         TOOx8cKlGmiA05oUQXO0Mdg+nI6zsjB126z4HghSbuwNM64JmBnIhFhz2nd4mFRQj0zm\n         BvDxNs2epnOU5NCzSvYzlqoqDvpxVbXN4M2Vl3Z9uZeXQ3kn/8PCCD1TFKjDc/x3aVq0\n         Fh9w==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1774556294; x=1775161094;\n        h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n         :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=d+yR8XT8nASwGHMWYhsKkkmFjd2K2R90pTX2kvttbtQ=;\n        b=CWfqbjNeSiZYt43FvfSe1SzSIBYu1XvORdONGD4lqefqImuxaTOQld6riyzuNrRWGD\n         k+5r7+jGwOGuLoGO9qEDpNAXvjqTWbKTU0V7z350i7S8Q9cMsf0GZh77Mx9kHMZly3pX\n         78p9Dk++kd9sekZfm2LDWhtlGGmVn7QULXIR0FKrflLhKZNC5GcyWjKBNOX4K4Ch32Em\n         BrktyPbTEb9IuPQj0tTGW7df31SNv5uTvzHnRIfaIxVS+3srWPPuJSLNTX0ETw7xAckq\n         g82MOPqnW93CRO8g0pM+jnVYBm1PcCJz7zvt9kIlH4UH3QKQkPBK8sesP32s2GX0UhgX\n         Lo0A==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCWEDe+7x27DeCADW5ANFOh0VFfeupn+W2VBg/EMIVHHmAJ1OAP1EZWIzBvumyU/vb/NqBSpSBcOid7x@vger.kernel.org",
        "X-Gm-Message-State": "AOJu0YxqW9EELSdxe2GNiGKS7dJ3Ni2pahoEJaKbgLoVysvghzULpJ/i\n\tyHqp85virx8jSCbGHnN6KG5yMSJFYZC+rDkzPmdbzcO5QSt59CTkxQYE+gjqBCwb",
        "X-Gm-Gg": "ATEYQzzxgHfXklfYXkuDOlmUMwtFyR4R6kVeK55Zosizcb/XqLiZNsS+wEgvVFRkhg4\n\tJYgifh+yS2neMzBf7V8Wlrt4qRZRs4kHx5QhanwCxZAZnGMNpJsR/YkXMt0Jf9OFicCGyc2je4o\n\t6K80Nlfi2YhZsHfqiCuKb65IzEDewl099mioOaydp9Qer0uwCcZXky1oDZ91Zt9TJszstQ2+TWi\n\tghnnSjdcaP7K9bfsJ6/A3uslpQHrm+0pQNYPer8QuGE+ziz0yOpzvyyaesLMIx5RdKu+Uk3NgbI\n\tUVOuTW4wks4aeD6umNBs3qsSOwq73y7wSFacJp21KJxWIZDvSpTNgCE94UEmgH5tsf6lm+CKxGE\n\tHEXgrVGXTU6Fu+4gyf2JXA9jJ1hrZTkyJRTc2VTehrG65SzCofigLP4lHnWKLMxA08XPAOilSMH\n\tZKgUuEzuUlZJRmnaSAAhSCibWDNGv39J/YGZoHLSXz4hy3+trhFgWcBeXimjALnUEG1TLRk3gGQ\n\tnyBLf3PZaU2",
        "X-Received": "by 2002:a05:600c:4e93:b0:486:f893:56c6 with SMTP id\n 5b1f17b1804b1-48722bd529fmr49056345e9.10.1774556293832;\n        Thu, 26 Mar 2026 13:18:13 -0700 (PDT)",
        "From": "david.laight.linux@gmail.com",
        "To": "\"Theodore Ts'o\" <tytso@mit.edu>,\n\tAndreas Dilger <adilger.kernel@dilger.ca>,\n\tlinux-ext4@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org",
        "Cc": "David Laight <david.laight.linux@gmail.com>,\n\tMasami Hiramatsu <mhiramat@kernel.org>,\n\tPetr Mladek <pmladek@suse.com>,\n\tRasmus Villemoes <linux@rasmusvillemoes.dk>,\n\tAndy Shevchenko <andriy.shevchenko@linux.intel.com>,\n\tSteven Rostedt <rostedt@goodmis.org>,\n\tSergey Senozhatsky <senozhatsky@chromium.org>,\n\tAndrew Morton <akpm@linux-foundation.org>",
        "Subject": "[PATCH next] ext4: Fix diagnostic printf formats",
        "Date": "Thu, 26 Mar 2026 20:18:04 +0000",
        "Message-Id": "<20260326201804.3881-1-david.laight.linux@gmail.com>",
        "X-Mailer": "git-send-email 2.39.5",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-ext4@vger.kernel.org",
        "List-Id": "<linux-ext4.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-ext4+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-ext4+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Spam-Status": "No, score=-1.2 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,\n\tFREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,\n\tMAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org"
    },
    "content": "From: David Laight <david.laight.linux@gmail.com>\n\nThe formats for non-terminated names should be \"%.*s\" not \"%*.s\".\nThe kernel currently treats \"%*.s\" as equivalent to \"%*s\" whereas\nuserspace requires it be equivalent to \"%*.0s\".\nNeither is correct here.\n\nSigned-off-by: David Laight <david.laight.linux@gmail.com>\n---\n fs/ext4/namei.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c\nindex c4b5e252af0e..7aaf5fbd4498 100644\n--- a/fs/ext4/namei.c\n+++ b/fs/ext4/namei.c\n@@ -647,7 +647,7 @@ static struct stats dx_show_leaf(struct inode *dir,\n \t\t\t\t\t/* Directory is not encrypted */\n \t\t\t\t\t(void) ext4fs_dirhash(dir, de->name,\n \t\t\t\t\t\tde->name_len, &h);\n-\t\t\t\t\tprintk(\"%*.s:(U)%x.%u \", len,\n+\t\t\t\t\tprintk(\"%.*s:(U)%x.%u \", len,\n \t\t\t\t\t       name, h.hash,\n \t\t\t\t\t       (unsigned) ((char *) de\n \t\t\t\t\t\t\t   - base));\n@@ -683,7 +683,7 @@ static struct stats dx_show_leaf(struct inode *dir,\n \t\t\t\t\t\t(void) ext4fs_dirhash(dir,\n \t\t\t\t\t\t\tde->name,\n \t\t\t\t\t\t\tde->name_len, &h);\n-\t\t\t\t\tprintk(\"%*.s:(E)%x.%u \", len, name,\n+\t\t\t\t\tprintk(\"%.*s:(E)%x.%u \", len, name,\n \t\t\t\t\t       h.hash, (unsigned) ((char *) de\n \t\t\t\t\t\t\t\t   - base));\n \t\t\t\t\tfscrypt_fname_free_buffer(\n@@ -694,7 +694,7 @@ static struct stats dx_show_leaf(struct inode *dir,\n \t\t\t\tchar *name = de->name;\n \t\t\t\t(void) ext4fs_dirhash(dir, de->name,\n \t\t\t\t\t\t      de->name_len, &h);\n-\t\t\t\tprintk(\"%*.s:%x.%u \", len, name, h.hash,\n+\t\t\t\tprintk(\"%.*s:%x.%u \", len, name, h.hash,\n \t\t\t\t       (unsigned) ((char *) de - base));\n #endif\n \t\t\t}\n",
    "prefixes": [
        "next"
    ]
}