[<prev] [next>] [day] [month] [year] [list]
Message-ID: <454cb73e-a1f8-4824-9fe1-2b55a4dd99e3@p183>
Date: Wed, 3 Sep 2025 12:13:17 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: zhangjiao2 <zhangjiao2@...s.chinamobile.com>
Cc: akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org
Subject: Re: [PATCH] fs/proc/base.c: Fix the wrong format specifier
>- 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
Powered by blists - more mailing lists