From: Alexey Dobriyan <adobriyan@gmail.com>
To: zhangjiao2 <zhangjiao2@cmss.chinamobile.com>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH] fs/proc/base.c: Fix the wrong format specifier
Date: Wed, 3 Sep 2025 12:13:17 +0300 [thread overview]
Message-ID: <454cb73e-a1f8-4824-9fe1-2b55a4dd99e3@p183> (raw)
>- len = snprintf(name, sizeof(name), "%u", tid);
> + len = snprintf(name, sizeof(name), "%d", tid);
Ehh, no.
%u is correct because "tid" can't be negative.
%alexey
next reply other threads:[~2025-09-03 9:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-03 9:13 Alexey Dobriyan [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-09-03 8:39 zhangjiao2
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=454cb73e-a1f8-4824-9fe1-2b55a4dd99e3@p183 \
--to=adobriyan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zhangjiao2@cmss.chinamobile.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®