target: tcm_loop: Use seq_puts() in tcm_loop_show_info()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 11 Dec 2017 10:01:57 +0000 (11:01 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 12 Jan 2018 23:07:26 +0000 (15:07 -0800)
The script "checkpatch.pl" pointed information out like the following.

WARNING: Prefer seq_puts to seq_printf

Thus fix the affected source code place.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/loopback/tcm_loop.c

index ec01070bbb40e3084ac7df02e3690d42fd71f7ff..9cd4ffe76c07ff4a0f9bb87be3b389d3a54126ee 100644 (file)
@@ -64,7 +64,7 @@ static void tcm_loop_release_cmd(struct se_cmd *se_cmd)
 
 static int tcm_loop_show_info(struct seq_file *m, struct Scsi_Host *host)
 {
-       seq_printf(m, "tcm_loop_proc_info()\n");
+       seq_puts(m, "tcm_loop_proc_info()\n");
        return 0;
 }