summaryrefslogtreecommitdiff
path: root/fs/proc
diff options
context:
space:
mode:
authorzhang jiao <zhangjiao2@cmss.chinamobile.com>2025-09-03 16:39:47 +0800
committerAndrew Morton <akpm@linux-foundation.org>2025-09-13 17:32:54 -0700
commit13f23538ef49a96a1b8ba9d61bd778de65f00613 (patch)
tree25acf62a95e04de4416a9b478c0907a0ae3e87f7 /fs/proc
parent37aa782df94d16277b45b9a62b748cd62b4bccb9 (diff)
fs/proc/base.c: fix the wrong format specifier
Use '%d' instead of '%u' for int. Link: https://lkml.kernel.org/r/20250903083948.2536-1-zhangjiao2@cmss.chinamobile.com Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Christian Brauner <brauner@kernel.org> Cc: Frederic Weisbecker <frederic@kernel.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Cc: Thomas Gleinxer <tglx@linutronix.de> Cc: xu xin <xu.xin16@zte.com.cn> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 62d35631ba8c..569c93c9f927 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -3945,7 +3945,7 @@ static int proc_task_readdir(struct file *file, struct dir_context *ctx)
tid = task_pid_nr_ns(task, ns);
if (!tid)
continue; /* The task has just exited. */
- len = snprintf(name, sizeof(name), "%u", tid);
+ len = 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