aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>2019-06-19 18:01:49 -0400
committerJens Axboe <axboe@kernel.dk>2019-06-20 05:20:03 -0400
commit3f6d385f818029d353fb932fcac38c3f11eeeb20 (patch)
tree50a865885cd6ce3a4c0d365718353aaf06282f6b /block
parentee1e03598f7961f471367e075edcdbd8492a2239 (diff)
block: use right format specifier for op
In function __blk_mq_debugfs_rq_show variable op has unsigned int type. Since op can never be negative use %u format specifier to match the variable type. Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r--block/blk-mq-debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c
index 84394835e2b0..03b6aabbe602 100644
--- a/block/blk-mq-debugfs.c
+++ b/block/blk-mq-debugfs.c
@@ -347,7 +347,7 @@ int __blk_mq_debugfs_rq_show(struct seq_file *m, struct request *rq)
347 if (op < ARRAY_SIZE(op_name) && op_name[op]) 347 if (op < ARRAY_SIZE(op_name) && op_name[op])
348 seq_printf(m, "%s", op_name[op]); 348 seq_printf(m, "%s", op_name[op]);
349 else 349 else
350 seq_printf(m, "%d", op); 350 seq_printf(m, "%u", op);
351 seq_puts(m, ", .cmd_flags="); 351 seq_puts(m, ", .cmd_flags=");
352 blk_flags_show(m, rq->cmd_flags & ~REQ_OP_MASK, cmd_flag_name, 352 blk_flags_show(m, rq->cmd_flags & ~REQ_OP_MASK, cmd_flag_name,
353 ARRAY_SIZE(cmd_flag_name)); 353 ARRAY_SIZE(cmd_flag_name));