powerpc/mm: Use seq_putc() in two functions
Subsystems (2)
PATCH 1/1 powerpc/mm: Use seq_putc() in two functions
From: Markus Elfring <[email protected]>
Date: Sun, 7 May 2017 16:32:04 +0200
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 <[email protected]>
--- arch/powerpc/mm/dump_hashpagetable.c | 2 +- arch/powerpc/mm/dump_linuxpagetables.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/mm/dump_hashpagetable.c +1 -1
@@ -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' ); }
arch/powerpc/mm/dump_linuxpagetables.c +1 -1
@@ -349,7 +349,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' ); }/*
Signature · 1 line
2.12.2
Michael Ellerman
AppliedQuoted 9 lines · SF Markus Elfring
From: Markus Elfring <[email protected]>
Date: Sun, 7 May 2017 16:32:04 +0200Two 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 <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/aae85e3c20ec3baa90aa901a517c8f
cheers