From: Masanari Iida Date: Fri, 28 Feb 2014 11:53:42 +0000 (+0900) Subject: staging: luster: Fix format string mismatch in workitem.c X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6879807caeef3c89545600c04bca271d767012ef;p=linux-beck.git 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 --- 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); }