Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965441AbeAMILt (ORCPT + 1 other); Sat, 13 Jan 2018 03:11:49 -0500 Received: from mout.web.de ([212.227.15.14]:63320 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751225AbeAMILr (ORCPT ); Sat, 13 Jan 2018 03:11:47 -0500 To: linux-bcache@vger.kernel.org, Kent Overstreet , Michael Lyle Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] bcache: Use seq_putc() in debug_seq_show() Message-ID: <9de4911b-23ff-ef53-5187-73eca1d521ea@users.sourceforge.net> Date: Sat, 13 Jan 2018 09:11:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:WhQ0vwIq5nXrl1gObb2BeFOG1fqqDGFtTLwTMPOYGWRCUZgXpWp 2SN3BWoiI9aBv2CzhZGattwlJ6SEGzLSIYC45hydB45YlSLPbUy2FiSEwbKu/lvSktnDLnd p0ulKwURP7Ewn+yFB34j4xtoeROrT5wlbQySEsYUvDIBeWPBkXjqhv5efwv3ZSCS/gROOun 4KfkfwTBzzg8DexFjH/Fw== X-UI-Out-Filterresults: notjunk:1;V01:K0:AdIr+ykl4I4=:0iT0ZwIjXUNTd5o7OilDHj sToFuQcZTuchXOD9wkc6sdZZLnl3zACotFOxd1WSK8C3FLHc0io0d+3Zd5/REyZOrGfD3q5Xk 7BsMZea3Q6R1MSOE0Melb8obSz26UBOGr0qMgeV50KB5yEQlS1otoNsZMmAbyir4DwIfFvjp/ j28Rea49+NNFleDV9w5PEQc8QPNLEbNovcpmRTjLxTwbmM1c/vWiWMOFAbO7NQuZ4KgKp+E7e o8LDr9KuLyzemo0W1Gh3WmxrgGLgOtmBzAEd+CeuswxuQomspIKN5APae7qd45x8ZPU/biNPP CoNocqx4MFLZyXqMZ7+IjE8+dWutkGhTZeEM1zgmF/IEMhylr/agyx5ePzeOA5yfnAW8LMZdp H06R76jqyuplbV69a2vVSRNRGPTz3+5ULxxoweeBwYGCSAAY7SyNYMHddVQuzfTZFahQ2qS3a i5U3vYcZ+jLTTA9o3mEPVN0kx7n+L4ek4u8zQQ1E5nrksCHIZMC1LatF3CmoaWvMskB5mjcQj CeZnsjcvTGC5eqpMU0fNbcvaUMXS7gC7RIsK2gvSsJb9uAfyTsUKEvQAGuelPqjsJ2Xw51GBi auBEdRwQ6SuqkIBqYa93/SirrPmCLxIkaYa9BGxD/8pgQXaliImsRyxzxV8QetWFb5zXp0BK9 zVMDKJm+YcBu5Iiik0eXlJmaBB9NGwqNhGH8jlykRWH8fhO+Xn2N+3sZRV7TzemcJMq4zEnL+ KrzdSkjqJ9cCfg4Y8YoKNKxip0A1kyn9SmEjHVPCer+JwSnqWb/D+VjYF4pnueP2UMG2+7f11 o/lugptX89hQ/X8bwY/9QFIAELtwLDT0v0eWTFAGu5S4PfI16w= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Sat, 13 Jan 2018 09:05:03 +0100 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 --- drivers/md/bcache/closure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/bcache/closure.c b/drivers/md/bcache/closure.c index 1841d0359bac..9cdbddbe0ed0 100644 --- a/drivers/md/bcache/closure.c +++ b/drivers/md/bcache/closure.c @@ -179,7 +179,7 @@ static int debug_seq_show(struct seq_file *f, void *data) seq_printf(f, " W %pF\n", (void *) cl->waiting_on); - seq_printf(f, "\n"); + seq_putc(f, '\n'); } spin_unlock_irq(&closure_list_lock); -- 2.15.1