linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] android: binder: Use seq_putc() in print_binder_node()
@ 2017-05-07 20:15 SF Markus Elfring
  0 siblings, 0 replies; only message in thread
From: SF Markus Elfring @ 2017-05-07 20:15 UTC (permalink / raw)
  To: devel, Arve Hjønnevåg, Greg Kroah-Hartman, Riley Andrews
  Cc: LKML, kernel-janitors

From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sun, 7 May 2017 22:07:16 +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>
---
 drivers/android/binder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/android/binder.c b/drivers/android/binder.c
index aae4d8d4be36..041b49b0bbd9 100644
--- a/drivers/android/binder.c
+++ b/drivers/android/binder.c
@@ -3871,7 +3871,7 @@ static void print_binder_node(struct seq_file *m, struct binder_node *node)
 		hlist_for_each_entry(ref, &node->refs, node_entry)
 			seq_printf(m, " %d", ref->proc->pid);
 	}
-	seq_puts(m, "\n");
+	seq_putc(m, '\n');
 	list_for_each_entry(w, &node->async_todo, entry)
 		print_binder_work(m, "    ",
 				  "    pending async transaction", w);
-- 
2.12.2

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-05-07 22:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-07 20:15 [PATCH] android: binder: Use seq_putc() in print_binder_node() SF Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).