mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 02:00:43 -04:00
staging: luster: Fix format string mismatch in workitem.c
ws_nthreads is defined as unsigned int, but it was specified as int. Signed-off-by: Masanari Iida <standby24x7@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
31960c16c4
commit
6879807cae
@@ -389,11 +389,11 @@ cfs_wi_sched_create(char *name, struct cfs_cpt_table *cptab,
|
||||
spin_unlock(&cfs_wi_data.wi_glock);
|
||||
|
||||
if (sched->ws_cptab != NULL && sched->ws_cpt >= 0) {
|
||||
snprintf(name, sizeof(name), "%s_%02d_%02d",
|
||||
snprintf(name, sizeof(name), "%s_%02d_%02u",
|
||||
sched->ws_name, sched->ws_cpt,
|
||||
sched->ws_nthreads);
|
||||
} else {
|
||||
snprintf(name, sizeof(name), "%s_%02d",
|
||||
snprintf(name, sizeof(name), "%s_%02u",
|
||||
sched->ws_name, sched->ws_nthreads);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user