staging: luster: Fix format string mismatch in workitem.c
authorMasanari Iida <standby24x7@gmail.com>
Fri, 28 Feb 2014 11:53:42 +0000 (20:53 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2014 22:34:09 +0000 (14:34 -0800)
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>
drivers/staging/lustre/lustre/libcfs/workitem.c

index 1a55c81..53813fc 100644 (file)
@@ -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);
                }