Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966362AbcJFJWP (ORCPT ); Thu, 6 Oct 2016 05:22:15 -0400 Received: from mout.web.de ([212.227.15.14]:51807 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966105AbcJFJWL (ORCPT ); Thu, 6 Oct 2016 05:22:11 -0400 Subject: [PATCH 23/54] md/raid1: Replace a seq_printf() call by seq_puts() in raid1_status() To: linux-raid@vger.kernel.org, Christoph Hellwig , Guoqing Jiang , Jens Axboe , Mike Christie , Neil Brown , Shaohua Li , Tomasz Majchrzak References: <566ABCD9.1060404@users.sourceforge.net> <786843ef-4b6f-eb04-7326-2f6f5b408826@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: Date: Thu, 6 Oct 2016 11:21:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <786843ef-4b6f-eb04-7326-2f6f5b408826@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:Jx9mUTEwHqDtWiANyzk2FMnhY1O2NbdL6Jo5+5LYSU4OOmvvN7I jMyPeQTCH7g2nTh8IX6IG7WdoQ9aF5RYUK54iZ3DAi4Oh0dl+NIFP+k8PoK/fQ7WFb9nzuT Q/zDZunaiLjnrKw6eTMhYakLWCw+um5QG4716xcji4Ntig9gA8KozPIVB7NtjH0dMdnn3gA lhgvPuxrP0WdojjCIsaSw== X-UI-Out-Filterresults: notjunk:1;V01:K0:0MUIZcNcXHo=:xHuw7lNbPHBAT34uld/1QG GoFVukfeGTeDkWD89aMb42ZIVhEWXFMkV85fAavWcyWi7erStgY9KpFCnlGhJjUJhbGvB14LD lwHYGI/mVPHDJg6JdTbmdWAV23YMw/RG1SfU9xbk8VRdBXQE5/2b2GuLqvCG4te1GZpDaSAS6 IFKNJED1stciyd4dNt4GtFlK5AeyVmaQDNxbjyLh1pAsHmMOhnm4tNdSyusYpNO3bXTPhuUHK puRbqN1z05orVa/R09sY1N/0izROi27imFAU/G68a5ZS/HJ04w4H5k48hMQm8xGlJF5aWgh8f 1WFMxIAK63t8+RPfjQS02cj8HgJjfRhkPQK6Ip4DeuEtcupM68P9BHYG6Ntw4otuYRjyFbA5r nwyov3plN/hWgh2jfHSWxpIFzVUxZbH+Lq7HhTWfk/ONa2EPKoRte3qjm9yTfXCuW7NFARruT PaxIIL3zCwc4rE29IZsh0stNVTWvZY7Cof3c79u5HoDz8h4Ml4Dkx7WXVhY4uVVLjCPtgs48x 6sTTbRKnITXevb3gH2UJ39/MdrF5GKPAg2asg1mlvqVgtHmD2QGkCMaJTZ12K9YeVIHsKhh0J ZKTZIdwxx9raRZXhDGM6Vb6T/5X2darxgExXw3tu0FxHpvsEna93RmcBLL4VYw5MMjqMga1b8 Zv3U2TNwclhfn+Nkca8B9sY08boq4tBPtys4FWWmIE6jHo48PZS4a06jpY8YY7JxpI8VOQWyS W5ITIcPvU7WpIwDJm49cj/zkRuwfzvRC2Tim/+qxPyfbUS8045+1RBXUuBp5mUi5hLMsTfTR1 n9uHeIe Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 783 Lines: 27 From: Markus Elfring Date: Tue, 4 Oct 2016 21:16:13 +0200 The script "checkpatch.pl" pointed information out like the following. WARNING: Prefer seq_puts to seq_printf Signed-off-by: Markus Elfring --- drivers/md/raid1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 95f6098..ec6aafb 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -1417,7 +1417,7 @@ static void raid1_status(struct seq_file *seq, struct mddev *mddev) rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_"); } rcu_read_unlock(); - seq_printf(seq, "]"); + seq_puts(seq, "]"); } static void raid1_error(struct mddev *mddev, struct md_rdev *rdev) -- 2.10.1