mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 01:05:29 +00:00
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/375b5b4b-6295-419e-bae9-da724a7a682d@web.de Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Cc: Jason Baron <jbaron@akamai.com> Cc: Jim Cromie <jim.cromie@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
0833952c07
commit
7b76689a02
@ -1147,7 +1147,7 @@ static int ddebug_proc_show(struct seq_file *m, void *p)
|
|||||||
iter->table->mod_name, dp->function,
|
iter->table->mod_name, dp->function,
|
||||||
ddebug_describe_flags(dp->flags, &flags));
|
ddebug_describe_flags(dp->flags, &flags));
|
||||||
seq_escape_str(m, dp->format, ESCAPE_SPACE, "\t\r\n\"");
|
seq_escape_str(m, dp->format, ESCAPE_SPACE, "\t\r\n\"");
|
||||||
seq_puts(m, "\"");
|
seq_putc(m, '"');
|
||||||
|
|
||||||
if (dp->class_id != _DPRINTK_CLASS_DFLT) {
|
if (dp->class_id != _DPRINTK_CLASS_DFLT) {
|
||||||
class = ddebug_class_name(iter, dp);
|
class = ddebug_class_name(iter, dp);
|
||||||
@ -1156,7 +1156,7 @@ static int ddebug_proc_show(struct seq_file *m, void *p)
|
|||||||
else
|
else
|
||||||
seq_printf(m, " class unknown, _id:%d", dp->class_id);
|
seq_printf(m, " class unknown, _id:%d", dp->class_id);
|
||||||
}
|
}
|
||||||
seq_puts(m, "\n");
|
seq_putc(m, '\n');
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user