ws_nthreads is defined as unsigned int, but it was specified as int. Signed-off-by: Masanari Iida <standby24x7@xxxxxxxxx> --- 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 1a55c81..53813fc 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); } -- 1.9.0 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel