forked from Minki/linux
cgroup: Replace a seq_printf() call by seq_puts() in cgroup_print_ss_mask()
A string which did not contain a data format specification should be put into a sequence. Thus use the corresponding function “seq_puts”. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
ad5e427e0f
commit
85db002337
@ -2894,7 +2894,7 @@ static void cgroup_print_ss_mask(struct seq_file *seq, u16 ss_mask)
|
||||
do_each_subsys_mask(ss, ssid, ss_mask) {
|
||||
if (printed)
|
||||
seq_putc(seq, ' ');
|
||||
seq_printf(seq, "%s", ss->name);
|
||||
seq_puts(seq, ss->name);
|
||||
printed = true;
|
||||
} while_each_subsys_mask();
|
||||
if (printed)
|
||||
|
Loading…
Reference in New Issue
Block a user