From 6879807caeef3c89545600c04bca271d767012ef Mon Sep 17 00:00:00 2001 From: Masanari Iida Date: Fri, 28 Feb 2014 20:53:42 +0900 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/lustre/lustre/libcfs/workitem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lustre/libcfs/workitem.c b/drivers/staging/lustre/lustre/libcfs/workitem.c index 1a55c81892e0..53813fca536f 100644 --- a/drivers/staging/lustre/lustre/libcfs/workitem.c +++ b/drivers/staging/lustre/lustre/libcfs/workitem.c @@ -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); } -- 2.30.2