block: Fix format string mismatch in cfq-iosched.c
authorMasanari Iida <standby24x7@gmail.com>
Mon, 28 Apr 2014 03:38:34 +0000 (12:38 +0900)
committerJens Axboe <axboe@fb.com>
Wed, 30 Apr 2014 21:56:10 +0000 (15:56 -0600)
Fix format string mismatch in cfq_var_show()

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/cfq-iosched.c

index 5063a0bd831aaaab177f2582fbfc43ca13a6125c..22dffebc7c73531ec235e27e188f66fa88b677d8 100644 (file)
@@ -4460,7 +4460,7 @@ out_free:
 static ssize_t
 cfq_var_show(unsigned int var, char *page)
 {
-       return sprintf(page, "%d\n", var);
+       return sprintf(page, "%u\n", var);
 }
 
 static ssize_t