powerpc/mm: Use seq_putc() in two functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 7 May 2017 14:32:04 +0000 (16:32 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 1 Sep 2017 06:42:52 +0000 (16:42 +1000)
Two single characters (line breaks) 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/mm/dump_hashpagetable.c
arch/powerpc/mm/dump_linuxpagetables.c

index b1c144b03fcf3c448245aec655d84b3c1561f65c..5c4c93dcff190bf5a4babd9f8a8197aadd27347d 100644 (file)
@@ -205,7 +205,7 @@ static void dump_hpte_info(struct pg_state *st, unsigned long ea, u64 v, u64 r,
        aps_index = calculate_pagesize(st, aps, "actual");
        if (aps_index != 2)
                seq_printf(st->seq, "LP enc: %lx", lp);
-       seq_puts(st->seq, "\n");
+       seq_putc(st->seq, '\n');
 }
 
 
index 44fe4833910f64bcd014a2e3843ecd8c3077fc26..c9282d27b2037122577e7966601d70914e794bbc 100644 (file)
@@ -350,7 +350,7 @@ static void note_page(struct pg_state *st, unsigned long addr,
                                          st->current_flags,
                                          pg_level[st->level].num);
 
-                       seq_puts(st->seq, "\n");
+                       seq_putc(st->seq, '\n');
                }
 
                /*