]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - block/blk-mq-debugfs.c
blk-mq: Make blk_flags_show() callers append a newline character
[karo-tx-linux.git] / block / blk-mq-debugfs.c
index 1132be4e9c1c872744e27f91eb9bf82c03bf826d..ccc7b0f71230ecc6ae04f1448bc827a470ab9981 100644 (file)
@@ -60,7 +60,6 @@ static int blk_flags_show(struct seq_file *m, const unsigned long flags,
                else
                        seq_printf(m, "%d", i);
        }
-       seq_puts(m, "\n");
        return 0;
 }
 
@@ -102,6 +101,7 @@ static int blk_queue_flags_show(struct seq_file *m, void *v)
 
        blk_flags_show(m, q->queue_flags, blk_queue_flag_name,
                       ARRAY_SIZE(blk_queue_flag_name));
+       seq_puts(m, "\n");
        return 0;
 }
 
@@ -193,6 +193,7 @@ static int hctx_state_show(struct seq_file *m, void *v)
 
        blk_flags_show(m, hctx->state, hctx_state_name,
                       ARRAY_SIZE(hctx_state_name));
+       seq_puts(m, "\n");
        return 0;
 }
 
@@ -236,6 +237,7 @@ static int hctx_flags_show(struct seq_file *m, void *v)
        blk_flags_show(m,
                       hctx->flags ^ BLK_ALLOC_POLICY_TO_MQ_FLAG(alloc_policy),
                       hctx_flag_name, ARRAY_SIZE(hctx_flag_name));
+       seq_puts(m, "\n");
        return 0;
 }