Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

zhang jiao and committed by
Andrew Morton
13f23538 37aa782d

+1 -1
+1 -1
fs/proc/base.c
··· 3945 3945 tid = task_pid_nr_ns(task, ns); 3946 3946 if (!tid) 3947 3947 continue; /* The task has just exited. */ 3948 - len = snprintf(name, sizeof(name), "%u", tid); 3948 + len = snprintf(name, sizeof(name), "%d", tid); 3949 3949 if (!proc_fill_cache(file, ctx, name, len, 3950 3950 proc_task_instantiate, task, NULL)) { 3951 3951 /* returning this tgid failed, save it as the first