Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Markus Elfring and committed by
Andrew Morton
7b76689a 0833952c

+2 -2
+2 -2
lib/dynamic_debug.c
··· 1147 1147 iter->table->mod_name, dp->function, 1148 1148 ddebug_describe_flags(dp->flags, &flags)); 1149 1149 seq_escape_str(m, dp->format, ESCAPE_SPACE, "\t\r\n\""); 1150 - seq_puts(m, "\""); 1150 + seq_putc(m, '"'); 1151 1151 1152 1152 if (dp->class_id != _DPRINTK_CLASS_DFLT) { 1153 1153 class = ddebug_class_name(iter, dp); ··· 1156 1156 else 1157 1157 seq_printf(m, " class unknown, _id:%d", dp->class_id); 1158 1158 } 1159 - seq_puts(m, "\n"); 1159 + seq_putc(m, '\n'); 1160 1160 1161 1161 return 0; 1162 1162 }