Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1637015 > unrolled thread

[PATCH 2/4] s390/processor: Use seq_putc() in show_cpu_summary()

Started bySF Markus Elfring <elfring@users.sourceforge.net>
First post2017-05-07 23:50 +0200
Last post2017-05-07 23:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/4] s390/processor: Use seq_putc() in show_cpu_summary() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-05-07 23:50 +0200

#1637015 — [PATCH 2/4] s390/processor: Use seq_putc() in show_cpu_summary()

FromSF Markus Elfring <elfring@users.sourceforge.net>
Date2017-05-07 23:50 +0200
Subject[PATCH 2/4] s390/processor: Use seq_putc() in show_cpu_summary()
Message-ID<tECdY-30b-15@gated-at.bofh.it>
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sun, 7 May 2017 18:03:11 +0200

A single character (line break) 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@users.sourceforge.net>
---
 arch/s390/kernel/processor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/s390/kernel/processor.c b/arch/s390/kernel/processor.c
index 778cd6536175..b9a40c81e3d8 100644
--- a/arch/s390/kernel/processor.c
+++ b/arch/s390/kernel/processor.c
@@ -128,7 +128,7 @@ static void show_cpu_summary(struct seq_file *m, void *v)
 	for (i = 0; i < ARRAY_SIZE(int_hwcap_str); i++)
 		if (int_hwcap_str[i] && (int_hwcap & (1UL << i)))
 			seq_printf(m, "%s ", int_hwcap_str[i]);
-	seq_puts(m, "\n");
+	seq_putc(m, '\n');
 	show_facilities(m);
 	show_cacheinfo(m);
 	for_each_online_cpu(cpu) {
-- 
2.12.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web