Skip to content

Commit 7b76689

Browse files
elfringakpm00
authored andcommitted
dyndbg: use seq_putc() in ddebug_proc_show()
Single characters should be put into a sequence. Thus use the corresponding function "seq_putc". This issue was transformed by using the Coccinelle software. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Markus Elfring <[email protected]> Cc: Jason Baron <[email protected]> Cc: Jim Cromie <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 0833952 commit 7b76689

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/dynamic_debug.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ static int ddebug_proc_show(struct seq_file *m, void *p)
11471147
iter->table->mod_name, dp->function,
11481148
ddebug_describe_flags(dp->flags, &flags));
11491149
seq_escape_str(m, dp->format, ESCAPE_SPACE, "\t\r\n\"");
1150-
seq_puts(m, "\"");
1150+
seq_putc(m, '"');
11511151

11521152
if (dp->class_id != _DPRINTK_CLASS_DFLT) {
11531153
class = ddebug_class_name(iter, dp);
@@ -1156,7 +1156,7 @@ static int ddebug_proc_show(struct seq_file *m, void *p)
11561156
else
11571157
seq_printf(m, " class unknown, _id:%d", dp->class_id);
11581158
}
1159-
seq_puts(m, "\n");
1159+
seq_putc(m, '\n');
11601160

11611161
return 0;
11621162
}

0 commit comments

Comments
 (0)