From: Markus Elfring <elfr...@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 <elfr...@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

Reply via email to