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


Groups > linux.kernel > #1634453 > unrolled thread

[PATCH 4/6] md: Use seq_puts() in faulty_status()

Started bySF Markus Elfring <elfring@users.sourceforge.net>
First post2017-05-02 16:30 +0200
Last post2017-05-02 16:30 +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/6] md: Use seq_puts() in faulty_status() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-05-02 16:30 +0200

#1634453 — [PATCH 4/6] md: Use seq_puts() in faulty_status()

FromSF Markus Elfring <elfring@users.sourceforge.net>
Date2017-05-02 16:30 +0200
Subject[PATCH 4/6] md: Use seq_puts() in faulty_status()
Message-ID<tCGYq-7Na-17@gated-at.bofh.it>
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Tue, 2 May 2017 15:20:30 +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/md/faulty.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/md/faulty.c b/drivers/md/faulty.c
index b0536cfd8e17..f5536c91be5c 100644
--- a/drivers/md/faulty.c
+++ b/drivers/md/faulty.c
@@ -253,7 +253,7 @@ static void faulty_status(struct seq_file *seq, struct mddev *mddev)
 			   n, conf->period[ReadFixable]);
 
 	if ((n=atomic_read(&conf->counters[WriteAll])) != 0)
-		seq_printf(seq, " WriteAll");
+		seq_puts(seq, " WriteAll");
 
 	seq_printf(seq, " nfaults=%d", conf->nfaults);
 }
-- 
2.12.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web