public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
From: SF Markus Elfring <elfring@users.sourceforge.net>
To: linux-s390@vger.kernel.org,
	"Christian Bornträger" <borntraeger@de.ibm.com>,
	"Heiko Carstens" <heiko.carstens@de.ibm.com>,
	"Ingo Molnar" <mingo@kernel.org>,
	"Martin Schwidefsky" <schwidefsky@de.ibm.com>,
	"Paul Gortmaker" <paul.gortmaker@windriver.com>,
	"Peter Oberparleiter" <oberpar@linux.vnet.ibm.com>,
	"Peter Zijlstra" <peterz@infradead.org>,
	"Sascha Silbe" <silbe@linux.vnet.ibm.com>,
	"Vegard Nossum" <vegard.nossum@oracle.com>,
	"Viktor Mihajlovski" <mihajlov@linux.vnet.ibm.com>
Cc: LKML <linux-kernel@vger.kernel.org>, kernel-janitors@vger.kernel.org
Subject: [PATCH 3/4] s390/sysinfo: Replace six seq_printf() calls by seq_puts()
Date: Sun, 07 May 2017 17:16:15 +0000	[thread overview]
Message-ID: <590c30d3-fff8-dc73-5d14-ad78b6a65c51@users.sourceforge.net> (raw)
In-Reply-To: <fac68081-f0bb-2574-ba52-11ad78d792c3@users.sourceforge.net>

From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sun, 7 May 2017 18:18:45 +0200

Six strings which did not contain data format specifications 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>
---
 arch/s390/kernel/sysinfo.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/s390/kernel/sysinfo.c b/arch/s390/kernel/sysinfo.c
index eefcb54872a5..e7061fcd047a 100644
--- a/arch/s390/kernel/sysinfo.c
+++ b/arch/s390/kernel/sysinfo.c
@@ -139,13 +139,13 @@ static void stsi_15_1_x(struct seq_file *m, struct sysinfo_15_1_x *info)
 		return;
 	if (stsi(info, 15, 1, topology_max_mnest))
 		return;
-	seq_printf(m, "CPU Topology HW:     ");
+	seq_puts(m, "CPU Topology HW:     ");
 	for (i = 0; i < TOPOLOGY_NR_MAG; i++)
 		seq_printf(m, " %d", info->mag[i]);
 	seq_putc(m, '\n');
 #ifdef CONFIG_SCHED_TOPOLOGY
 	store_topology(info);
-	seq_printf(m, "CPU Topology SW:     ");
+	seq_puts(m, "CPU Topology SW:     ");
 	for (i = 0; i < TOPOLOGY_NR_MAG; i++)
 		seq_printf(m, " %d", info->mag[i]);
 	seq_putc(m, '\n');
@@ -202,13 +202,13 @@ static void stsi_2_2_2(struct seq_file *m, struct sysinfo_2_2_2 *info)
 	EBCASC(info->name, sizeof(info->name));
 	seq_putc(m, '\n');
 	seq_printf(m, "LPAR Number:          %d\n", info->lpar_number);
-	seq_printf(m, "LPAR Characteristics: ");
+	seq_puts(m, "LPAR Characteristics: ");
 	if (info->characteristics & LPAR_CHAR_DEDICATED)
-		seq_printf(m, "Dedicated ");
+		seq_puts(m, "Dedicated ");
 	if (info->characteristics & LPAR_CHAR_SHARED)
-		seq_printf(m, "Shared ");
+		seq_puts(m, "Shared ");
 	if (info->characteristics & LPAR_CHAR_LIMITED)
-		seq_printf(m, "Limited ");
+		seq_puts(m, "Limited ");
 	seq_putc(m, '\n');
 	seq_printf(m, "LPAR Name:            %-8.8s\n", info->name);
 	seq_printf(m, "LPAR Adjustment:      %d\n", info->caf);
-- 
2.12.2


  parent reply	other threads:[~2017-05-07 17:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-07 17:12 [PATCH 0/4] S390: Fine-tuning for six function implementations SF Markus Elfring
2017-05-07 17:13 ` [PATCH 1/4] s390/cache: Combine two function calls into one in show_cacheinfo() SF Markus Elfring
2017-05-07 17:14 ` [PATCH 2/4] s390/processor: Use seq_putc() in show_cpu_summary() SF Markus Elfring
2017-05-07 17:16 ` SF Markus Elfring [this message]
2017-05-07 17:18 ` [PATCH 4/4] s390/sysinfo: Combine two function calls into one SF Markus Elfring
2017-05-09  8:04 ` [PATCH 0/4] S390: Fine-tuning for six function implementations Vegard Nossum
2017-05-09  8:43   ` SF Markus Elfring
2017-05-09 10:30   ` [PATCH 0/4] " Ingo Molnar
2017-05-09 10:54     ` SF Markus Elfring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=590c30d3-fff8-dc73-5d14-ad78b6a65c51@users.sourceforge.net \
    --to=elfring@users.sourceforge.net \
    --cc=borntraeger@de.ibm.com \
    --cc=heiko.carstens@de.ibm.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=mihajlov@linux.vnet.ibm.com \
    --cc=mingo@kernel.org \
    --cc=oberpar@linux.vnet.ibm.com \
    --cc=paul.gortmaker@windriver.com \
    --cc=peterz@infradead.org \
    --cc=schwidefsky@de.ibm.com \
    --cc=silbe@linux.vnet.ibm.com \
    --cc=vegard.nossum@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox