From nobody Fri Oct 3 08:52:31 2025 Received: from cmccmta2.chinamobile.com (cmccmta4.chinamobile.com [111.22.67.137]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E0DF26CE03; Wed, 3 Sep 2025 08:43:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=111.22.67.137 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756889004; cv=none; b=WsDz0CVsCkUQpT6xdCI+yQzNiUT2pxawRbyJni1qO8F4fTNxLnpNSv5XVkQ1B9DmeGjwwtWUYnXnjnpQb0lDiQA+wZHrI7OKQWp67ADv7fi4ew9VNXmVBLhufM/mIdewjMsyzSoSCGVxGi1kCJSn8N+trVVSEflo1jHI8pa1a3c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756889004; c=relaxed/simple; bh=FeOtINI7CWDP8yDbnH17RcPFAGkecwnxp++CzSaWZko=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=X/on4nesFnXW7bNH6dIg5S1I9GjHTq3g0TRA6GnXZu1Hera8Fu/h9kwLVES+qp2vWqL/64AK897fIdBk17TkpODUzai8WoHWznZcpBNkA9Uuxc8K//yu1ap8CwBg0/azer5Q/ukZhAL+RofeCCscCch0j5wKTVs3fDreieiqG0E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; arc=none smtp.client-ip=111.22.67.137 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app08-12008 (RichMail) with SMTP id 2ee868b7fedb165-1b1f7; Wed, 03 Sep 2025 16:39:55 +0800 (CST) X-RM-TRANSID: 2ee868b7fedb165-1b1f7 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from Z04181454368174 (unknown[10.55.1.71]) by rmsmtp-syy-appsvr02-12002 (RichMail) with SMTP id 2ee268b7fed832e-67324; Wed, 03 Sep 2025 16:39:55 +0800 (CST) X-RM-TRANSID: 2ee268b7fed832e-67324 From: zhangjiao2 To: akpm@linux-foundation.org Cc: brauner@kernel.org, viro@zeniv.linux.org.uk, lorenzo.stoakes@oracle.com, frederic@kernel.org, tglx@linutronix.de, xu.xin16@zte.com.cn, mingo@kernel.org, superman.xpt@gmail.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, zhang jiao Subject: [PATCH] fs/proc/base.c: Fix the wrong format specifier Date: Wed, 3 Sep 2025 16:39:47 +0800 Message-ID: <20250903083948.2536-1-zhangjiao2@cmss.chinamobile.com> X-Mailer: git-send-email 2.50.1.windows.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: zhang jiao Use '%d' instead of '%u' for int. Signed-off-by: zhang jiao --- fs/proc/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/base.c b/fs/proc/base.c index b997ceef9135..6299878e3d97 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -3947,7 +3947,7 @@ static int proc_task_readdir(struct file *file, struc= t dir_context *ctx) tid =3D task_pid_nr_ns(task, ns); if (!tid) continue; /* The task has just exited. */ - len =3D snprintf(name, sizeof(name), "%u", tid); + len =3D snprintf(name, sizeof(name), "%d", tid); if (!proc_fill_cache(file, ctx, name, len, proc_task_instantiate, task, NULL)) { /* returning this tgid failed, save it as the first --=20 2.33.0