[<prev] [next>] [day] [month] [year] [list]
Message-ID: <65b43e5d-5721-8628-f77a-e39010d35f9a@users.sourceforge.net>
Date: Sun, 7 May 2017 21:52:59 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: x86@...nel.org, Fenghua Yu <fenghua.yu@...el.com>,
"H. Peter Anvin" <hpa@...or.com>, Ingo Molnar <mingo@...hat.com>,
Thomas Gleixner <tglx@...utronix.de>,
Tony Luck <tony.luck@...el.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: [PATCH] x86/intel_rdt: Use seq_putc() in show_doms()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Sun, 7 May 2017 21:45:38 +0200
Two single characters should be put into a sequence.
Thus use the corresponding function "seq_putc".
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
arch/x86/kernel/cpu/intel_rdt_schemata.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/cpu/intel_rdt_schemata.c b/arch/x86/kernel/cpu/intel_rdt_schemata.c
index 406d7a6532f9..6202fd4f0f5f 100644
--- a/arch/x86/kernel/cpu/intel_rdt_schemata.c
+++ b/arch/x86/kernel/cpu/intel_rdt_schemata.c
@@ -256,12 +256,12 @@ static void show_doms(struct seq_file *s, struct rdt_resource *r, int closid)
seq_printf(s, "%*s:", max_name_width, r->name);
list_for_each_entry(dom, &r->domains, list) {
if (sep)
- seq_puts(s, ";");
+ seq_putc(s, ';');
seq_printf(s, r->format_str, dom->id, max_data_width,
dom->ctrl_val[closid]);
sep = true;
}
- seq_puts(s, "\n");
+ seq_putc(s, '\n');
}
int rdtgroup_schemata_show(struct kernfs_open_file *of,
--
2.12.2
Powered by blists - more mailing lists