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


Groups > linux.kernel > #1646413 > unrolled thread

[PATCH 4/5] atm: Use seq_puts() in lec_info()

Started bySF Markus Elfring <elfring@users.sourceforge.net>
First post2017-05-21 22:20 +0200
Last post2017-05-21 22:20 +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 4/5] atm: Use seq_puts() in lec_info() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-05-21 22:20 +0200

#1646413 — [PATCH 4/5] atm: Use seq_puts() in lec_info()

FromSF Markus Elfring <elfring@users.sourceforge.net>
Date2017-05-21 22:20 +0200
Subject[PATCH 4/5] atm: Use seq_puts() in lec_info()
Message-ID<tJFux-42X-9@gated-at.bofh.it>
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sun, 21 May 2017 21:49:10 +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>
---
 net/atm/lec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/atm/lec.c b/net/atm/lec.c
index ca3aec0c0743..752891434074 100644
--- a/net/atm/lec.c
+++ b/net/atm/lec.c
@@ -804,7 +804,7 @@ static void lec_info(struct seq_file *seq, struct lec_arp_table *entry)
 	if (entry->vcc)
 		seq_printf(seq, "%3d %3d ", entry->vcc->vpi, entry->vcc->vci);
 	else
-		seq_printf(seq, "        ");
+		seq_puts(seq, "        ");
 	if (entry->recv_vcc) {
 		seq_printf(seq, "     %3d %3d", entry->recv_vcc->vpi,
 			   entry->recv_vcc->vci);
-- 
2.13.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web