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


Groups > linux.kernel > #1637283 > unrolled thread

[PATCH 1/3] block-aoe: Use seq_putc() in aoedisk_debugfs_show()

Started bySF Markus Elfring <elfring@users.sourceforge.net>
First post2017-05-08 10:00 +0200
Last post2017-05-08 10:00 +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 1/3] block-aoe: Use seq_putc() in aoedisk_debugfs_show() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-05-08 10:00 +0200

#1637283 — [PATCH 1/3] block-aoe: Use seq_putc() in aoedisk_debugfs_show()

FromSF Markus Elfring <elfring@users.sourceforge.net>
Date2017-05-08 10:00 +0200
Subject[PATCH 1/3] block-aoe: Use seq_putc() in aoedisk_debugfs_show()
Message-ID<tELKi-14K-13@gated-at.bofh.it>
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Mon, 8 May 2017 08:51:28 +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/block/aoe/aoeblk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/block/aoe/aoeblk.c b/drivers/block/aoe/aoeblk.c
index 027b876370bc..cfcf21ec123d 100644
--- a/drivers/block/aoe/aoeblk.c
+++ b/drivers/block/aoe/aoeblk.c
@@ -147,7 +147,7 @@ static int aoedisk_debugfs_show(struct seq_file *s, void *ignored)
 			seq_printf(s, "%c%s", c, ifp->nd->name);
 			c = ',';
 		}
-		seq_puts(s, "\n");
+		seq_putc(s, '\n');
 	}
 	spin_unlock_irqrestore(&d->lock, flags);
 
-- 
2.12.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web