Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755208AbeAMPqj (ORCPT + 1 other); Sat, 13 Jan 2018 10:46:39 -0500 Received: from mout.web.de ([212.227.15.4]:49506 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754998AbeAMPqh (ORCPT ); Sat, 13 Jan 2018 10:46:37 -0500 To: ocfs2-devel@oss.oracle.com, Joel Becker , Mark Fasheh Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] ocfs2: Combine two seq_printf() calls into one call in ocfs2_dlm_seq_show() Message-ID: <441d5e20-ea32-cfe8-bb1e-794d94c85be7@users.sourceforge.net> Date: Sat, 13 Jan 2018 16:46:28 +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:9uZt9dgzl9kdC48iYG57ErMHxMAKUWG5DGnKvwiFVKlcpC5DWGc kM+15H5SV/LC1dzzCI0EuT4cNnFzWlQ2YA60Ajg3+dPw8nIKR0CqGLdw3w6VdrkEjzEjUsX r7BeUKBwy1c+YXGTTZ/aoLH0JHy7XL0EngDwXyqau2Cm7qhXcOvwPdwWwYi6e91/elI/oKd VRDMp5YRu0lNIU9bx+/sw== X-UI-Out-Filterresults: notjunk:1;V01:K0:zB8NQKSzhKw=:LC39VJDZA1E219izFUiHsE GWJVINzfF/djtRUTPgGcgP5UGcKFmQA6dlzpy/1OTNSQ2Vguch85mdRJ0bpsg67RtpaQwWldG M0QuAZsERRKY7iYruBMEpSac0Bpm/m+pjFoTNirTOKH/O/0NEY2uJ0wH+XngMyIaZdDpgOr7F /2d/lTM2at0ARsYMmsVsa/USS3T8zOSI2QO69//41CZL4JfeRek1zH9XDV8vjLhPyLxe2T4Xa lOpmpiM/I7IlYOp2y8uI7Z9naJbqFgTqIxNnFujpKclJ4CSk5C9DoKW1RMv8sU3FThTryFdZp IzswXMqw5zRQ64k8J2GopWyVYdLuyAbGkMmr70EyypMHats0Wim6PCnQgncG+dQrKbzb0DFUg YTbGVCR+o+SfHLEMijoVdgH3v3Gc49V3RC8diPDHc9s/DPXeZt6VQDu348m4Uk+6yWcECeDPg nV1b6L2NpQpvuvQQwiuSKSpbO/CjKGYgrnI8L8IrrWFEJfClpDGCDmLQk/lpTw8dqJYyPoGYw /mUfUc5btMqe+jd0mar1SM4WEFPKyQ9sMte8A+HJU0Pd93+5J2Jk6egvh6sSy48WPTl9KVCe9 ZfwfnajxCRCVeWG+ovouG5y2UpoHbnv4oD7I7b8F5fkthZsUBGoeECl6FnAupjwAgxCUPWmR8 Ggva3FfXIq3aXyrcJATeiqijGAQqIxhTV65PtZyfB2D2TOWOlAEXUBguWF1iSHSM+jg/ide7I s61WgQf1X+uM6E46JgTmEASEIR3H7R+zM/J8B7lZUK0lrqPvA9gdu5OXv/01ZQEDMnu2CDEyq UvTcQnq57DzH3Dhf200+kp+CqDhtYppvA/urb//Nqny9+JbSRk= 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 16:36:51 +0100 Some data were printed into a sequence by two separate function calls. Print almost the same data by a single function call instead. (Omit a tab character at the line end within a format string.) This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- fs/ocfs2/dlmglue.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c index e4b9085a657a..909b4a339c80 100644 --- a/fs/ocfs2/dlmglue.c +++ b/fs/ocfs2/dlmglue.c @@ -3104,7 +3104,7 @@ static int ocfs2_dlm_seq_show(struct seq_file *m, void *v) "%llu\t" "%u\t" "%u\t" - "%u\t", + "%u\n", lock_num_prmode(lockres), lock_num_exmode(lockres), lock_num_prmode_failed(lockres), @@ -3114,9 +3114,6 @@ static int ocfs2_dlm_seq_show(struct seq_file *m, void *v) lock_max_prmode(lockres), lock_max_exmode(lockres), lock_refresh(lockres)); - - /* End the line */ - seq_printf(m, "\n"); return 0; } -- 2.15.1