fm10k: Use seq_putc() in fm10k_dbg_desc_break()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 8 May 2017 16:18:09 +0000 (18:18 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 2 Oct 2017 14:28:57 +0000 (07:28 -0700)
Two single characters should be put into a sequence.
Thus use the corresponding function "seq_putc".

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_debugfs.c

index 5116fd043630999bd9de724666d2b0d60077d5ba..14df09e2d964f92025cddbac28e510410bf194ed 100644 (file)
@@ -52,9 +52,9 @@ static void fm10k_dbg_desc_seq_stop(struct seq_file __always_unused *s,
 static void fm10k_dbg_desc_break(struct seq_file *s, int i)
 {
        while (i--)
-               seq_puts(s, "-");
+               seq_putc(s, '-');
 
-       seq_puts(s, "\n");
+       seq_putc(s, '\n');
 }
 
 static int fm10k_dbg_tx_desc_seq_show(struct seq_file *s, void *v)