Messages in this thread Patch in this message | | | Subject | [PATCH 2/6] lockdep: Use seq_putc() in seq_header() | From | SF Markus Elfring <> | Date | Wed, 3 May 2017 22:37:53 +0200 |
| |
From: Markus Elfring <elfring@users.sourceforge.net> Date: Wed, 3 May 2017 21:30: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 <elfring@users.sourceforge.net> --- kernel/locking/lockdep_proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/locking/lockdep_proc.c b/kernel/locking/lockdep_proc.c index 825496ece766..b1fa2ae31c0b 100644 --- a/kernel/locking/lockdep_proc.c +++ b/kernel/locking/lockdep_proc.c @@ -560,7 +560,7 @@ static void seq_header(struct seq_file *m) "holdtime-total", "holdtime-avg"); seq_line(m, '-', 0, 40 + 1 + 12 * (14 + 1)); - seq_printf(m, "\n"); + seq_putc(m, '\n'); } static void *ls_start(struct seq_file *m, loff_t *pos) -- 2.12.2
| |