[2/3] block: use right format specifier for op
diff mbox series

Message ID 20190619220150.6271-3-chaitanya.kulkarni@wdc.com
State New
Headers show
  • block: small fix and code cleanup for blk-mq-debugfs.c
Related show

Commit Message

Chaitanya Kulkarni June 19, 2019, 10:01 p.m. UTC
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>
 block/blk-mq-debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

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)
 	if (op < ARRAY_SIZE(op_name) && op_name[op])
 		seq_printf(m, "%s", op_name[op]);
-		seq_printf(m, "%d", op);
+		seq_printf(m, "%u", op);
 	seq_puts(m, ", .cmd_flags=");
 	blk_flags_show(m, rq->cmd_flags & ~REQ_OP_MASK, cmd_flag_name,