ARM-mm-dump: Use seq_putc() in note_page()
Subsystems (2)
PATCH 1/1 ARM-mm-dump: Use seq_putc() in note_page()
From: Markus Elfring <[email protected]>
Date: Sun, 16 Oct 2016 12:00:26 +0200
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 <[email protected]>
--- arch/arm/mm/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mm/dump.c +1 -1
@@ -241,7 +241,7 @@ static void note_page(struct pg_state *st, unsigned long addr, unsigned level, useq_printf (st->seq,"%9lu%c" , delta, *unit);if (pg_level[st->level].bits)dump_prot (st, pg_level[st->level].bits, pg_level[st->level].num); -seq_printf (st->seq,"\n" ); +seq_putc (st->seq,'\n' ); }if (addr >= st->marker[1 ].start_address) {
Signature · 1 line
2.10.1