Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942277AbcJFJw3 (ORCPT ); Thu, 6 Oct 2016 05:52:29 -0400 Received: from mout.web.de ([212.227.17.11]:63845 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S941780AbcJFJw0 (ORCPT ); Thu, 6 Oct 2016 05:52:26 -0400 Subject: [PATCH 52/54] md/raid10: Replace a seq_printf() call by seq_puts() in raid10_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: <69fc2ab2-ddde-068f-1aca-398aa4ce811e@users.sourceforge.net> Date: Thu, 6 Oct 2016 11:52:03 +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:uL0K7Y77DHbuqihiRCwQXN0sUKCQFf4d5DjLHLrJolCkuhaM49Q czIl9PoMI3UXkUcVDyG22qt+q7zi1C2yg7ad+q33/JXXCf7yUhhPxTYFXiRAQ6B/7n7G6Mv lSD3sgQx1h0+l9SjmVhbCXdq3oZRZjhzY0rjCInoSfSXWQktMkf9lwk+4BLhFrG09yP8S7c WTLDrFv2wEP59pNbhu99w== X-UI-Out-Filterresults: notjunk:1;V01:K0:z45qeQ4MI9c=:Ro+dfe4uu3nkebd17jsFE3 KvnL1YyhjjTr+MIV3yTDUcWlERR7ElJkUbff1Qo1nxJ72K/RVlREERndjUNKH+1G6D8BXkce+ xYHVzdS2uhd08K2S9otZcaNm4CuB1bhA/dRNruQ60X8baEJLd9q86j3Sgz+6BIYelgVJod8OR /7YCrkM19TPByE26Jz7denKVdGeGeofJI1adZva5YEIOstT2NGtENcrHdze2dZmNSB0s8Nqfo wda0szcsiDS01E8yXsLB5U+YLME/mEEt7RSG8hFhRTaImDU1XQ+CEQG1yLIKOiqF/Re9zIVPZ gE6fAvvOodgOGJ/Dj/+i3zbByNkcxV+iB4OpUS5Pa8vJNJELzjbgKOo1Ba05sZCNWjtZWvRLp 5aBz0u3Ob+2IF59XWNo0dOncl/Ejx7fNjciu/ZvBYafcGrh7tvQzXGecQD9Pk+/qg4/lwUo8j QN5iYI2k2tdTsk5DH0WP0aW4Gl6AbfeLFtKNNLED/Bg4XRPTtCsmFUGn87iGt1zQeiaNiSlzQ Be88lKCjAr0j4UbpyRC3m8U493vYKrxRcXrbcVamAAjR4UcUtsLhQ+uHytmC5gextin/aJdFO B9nRxQWtWcBA0kusDtK7eYQ/qeHt9cEli2qhJTeQ79ym8SHhPdnRPlROph5UZmhng7s5u6yuI 2BeQxyqBspQ3YLpbBXbekd68l4v6MTYDwD08TZ8R07N2ylvIRgGz9TtxU0Df22vFNupiRtxJt 7FWtDM9UkuWsQT1+chplaFaq+WoxbouLeOsQBqb+a+V6nCSPTXFhhc8eXnNXV8nsSvM6P32h6 buec1Tz Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 780 Lines: 27 From: Markus Elfring Date: Wed, 5 Oct 2016 21:41:09 +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/raid10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 82d79f5..554b6d2 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c @@ -1502,7 +1502,7 @@ static void raid10_status(struct seq_file *seq, struct mddev *mddev) seq_printf(seq, "%s", rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_"); } rcu_read_unlock(); - seq_printf(seq, "]"); + seq_puts(seq, "]"); } /* check if there are enough drives for -- 2.10.1