powerpc/4xx: Use seq_putc() in ocm_debugfs_show()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 11 Jan 2018 17:10:02 +0000 (18:10 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 21 Dec 2018 00:32:49 +0000 (11:32 +1100)
A single character (line break) 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>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/4xx/ocm.c

index cf0043d9f53631f4f7767d933555712dd3e542f9..9bbcfc468a11cf96dec123133a7370c42b0adc10 100644 (file)
@@ -264,7 +264,7 @@ static int ocm_debugfs_show(struct seq_file *m, void *v)
                                                blk->size, blk->owner);
                }
 
-               seq_printf(m, "\n");
+               seq_putc(m, '\n');
        }
 
        return 0;