[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f73f8630-9ac5-ddbf-7586-d56706526aed@users.sourceforge.net>
Date: Sat, 22 Oct 2016 21:57:50 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: linux-ia64@...r.kernel.org, Al Viro <viro@...iv.linux.org.uk>,
Borislav Petkov <bp@...e.de>,
Fenghua Yu <fenghua.yu@...el.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Hans-Christian Noren Egtvedt <egtvedt@...fundet.no>,
Ingo Molnar <mingo@...nel.org>,
Jörg Rödel <jroedel@...e.de>,
Krzysztof Kozlowski <krzk@...nel.org>,
Robert Richter <rrichter@...ium.com>,
Robin Murphy <robin.murphy@....com>,
Tony Luck <tony.luck@...el.com>,
Toshi Kani <toshi.kani@....com>,
Vineet Gupta <vgupta@...opsys.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: [PATCH 5/6] IA64-sn_hwperf: Use seq_puts() in sn_topology_show()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Sat, 22 Oct 2016 20:53:38 +0200
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@...rs.sourceforge.net>
---
arch/ia64/sn/kernel/sn2/sn_hwperf.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/ia64/sn/kernel/sn2/sn_hwperf.c b/arch/ia64/sn/kernel/sn2/sn_hwperf.c
index b999257..435002a 100644
--- a/arch/ia64/sn/kernel/sn2/sn_hwperf.c
+++ b/arch/ia64/sn/kernel/sn2/sn_hwperf.c
@@ -400,9 +400,9 @@ static int sn_topology_show(struct seq_file *s, void *d)
int nasid_msb;
if (obj == objs) {
- seq_printf(s, "# sn_topology version 2\n");
- seq_printf(s, "# objtype ordinal location partition"
- " [attribute value [, ...]]\n");
+ seq_puts(s,
+ "# sn_topology version 2\n"
+ "# objtype ordinal location partition [attribute value [, ...]]\n");
if (ia64_sn_get_sn_info(0,
&shubtype, &nasid_mask, &nasid_shift, &system_size,
--
2.10.1
Powered by blists - more mailing lists