From: Markus Elfring Date: Tue, 2 Jul 2019 17:26:59 +0000 (+0200) Subject: cgroup: Replace a seq_printf() call by seq_puts() in cgroup_print_ss_mask() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=85db0023376f529c477c6110043e069ccee16d9c;p=linux.git 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 Signed-off-by: Tejun Heo --- diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index 753afbca549fd..3c3d92d993e8b 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -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)