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


Groups > linux.kernel > #1637435

[PATCH 2/3] Input: Use seq_puts() in input_devices_seq_show()

From SF Markus Elfring <elfring@users.sourceforge.net>
Newsgroups linux.kernel
Subject [PATCH 2/3] Input: Use seq_puts() in input_devices_seq_show()
Date 2017-05-08 15:10 +0200
Message-ID <tEQAi-4ll-25@gated-at.bofh.it> (permalink)
References <tEQAh-4ll-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Markus Elfring <elfring@users.sourceforge.net>
Date: Mon, 8 May 2017 14:30:03 +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@users.sourceforge.net>
---
 drivers/input/input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/input.c b/drivers/input/input.c
index 0d204b841575..067a6edd643c 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -1144,7 +1144,7 @@ static int input_devices_seq_show(struct seq_file *seq, void *v)
 	seq_printf(seq, "P: Phys=%s\n", dev->phys ? dev->phys : "");
 	seq_printf(seq, "S: Sysfs=%s\n", path ? path : "");
 	seq_printf(seq, "U: Uniq=%s\n", dev->uniq ? dev->uniq : "");
-	seq_printf(seq, "H: Handlers=");
+	seq_puts(seq, "H: Handlers=");
 
 	list_for_each_entry(handle, &dev->h_list, d_node)
 		seq_printf(seq, "%s ", handle->name);
-- 
2.12.2

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] Input: Fine-tuning for six function implementations SF Markus Elfring <elfring@users.sourceforge.net> - 2017-05-08 15:10 +0200
  [PATCH 3/3] Input: Improve a size determination in four functions SF Markus Elfring <elfring@users.sourceforge.net> - 2017-05-08 15:10 +0200
  [PATCH 2/3] Input: Use seq_puts() in input_devices_seq_show() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-05-08 15:10 +0200
  [PATCH 1/3] Input: Use seq_putc() in input_seq_print_bitmap() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-05-08 15:10 +0200

csiph-web