From patchwork Mon May 8 13:05:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9716183 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EB6BD60364 for ; Mon, 8 May 2017 13:05:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E52BB26CFC for ; Mon, 8 May 2017 13:05:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D996926E5D; Mon, 8 May 2017 13:05:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 866E426CFC for ; Mon, 8 May 2017 13:05:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751709AbdEHNF3 (ORCPT ); Mon, 8 May 2017 09:05:29 -0400 Received: from mout.web.de ([212.227.17.12]:61789 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750985AbdEHNF2 (ORCPT ); Mon, 8 May 2017 09:05:28 -0400 Received: from [192.168.1.3] ([77.182.37.117]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LlFDW-1dihKV2l3W-00azhd; Mon, 08 May 2017 15:05:25 +0200 Subject: [PATCH 2/3] Input: Use seq_puts() in input_devices_seq_show() From: SF Markus Elfring To: linux-input@vger.kernel.org, Dmitry Torokhov Cc: LKML , kernel-janitors@vger.kernel.org References: <85bf6874-661a-9cab-1e9b-ea9e312b94de@users.sourceforge.net> Message-ID: <842c54f4-6ec4-9d39-5f10-e288db08c1b0@users.sourceforge.net> Date: Mon, 8 May 2017 15:05:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 In-Reply-To: <85bf6874-661a-9cab-1e9b-ea9e312b94de@users.sourceforge.net> Content-Language: en-US X-Provags-ID: V03:K0:g7Olm6qqsfSgxGsGlWWmZ3naVD1t/8l6q6niZ22Ww9vKhh6udnP 0W25pqByjdjvvFk2Qyv6PqL17yguDpfW5vgb1pMpz/lp8wU3sCmz7SjIT999l17hCttpWCf 8/un7u50pFSbf6iggIfmX75i3+KTRzfnykuh0aRWKfVhCL0O6eWzB4dxLw1YquDE8TrvVsQ cMLacGMHquS84xqh9Hr8w== X-UI-Out-Filterresults: notjunk:1; V01:K0:ufz3Ncpgt9w=:H7n0a8wtE5uCty102U/NhT a/VB9mHtDns3FySyUIWgu1/gFVYMfZZTOqXKwVoyE4UQ3zHF4mHFsQbqKOhsc+WvwyahIjDy3 hjd8qhRY4tgTsMRmdRQv6Oow3tXyXPR+km9jn+gcQG+MRvwAqZGeXvSTvjMQCab+cAmNR5Kk1 B0XgiIsjpJBw8ocs4DO2oiRc03UVyrWgNo/KYiuNHY25ALdAM/i37eYLXfbxhaxKkFvNyd91W YMBS2LqC+jz/m/7AWOIP/3TRYVRKzONfilFsju6WOe3cMW64K7MSsoSMFFUoB10ssZ4AYAU7Z qVu2tFmROvl+m3fOAVMojsSRs2VwtJoONndJaAmMKkkBd0NKTCwOf3tGbA7JPE0E+5lKkrJBL sBE3JeNbutO5TKBpLAPfIyJn5lsKFXOhkrFVIi6ARV770g+PIvWL8S6AsPRL3GSxx4jyp01fj Se9acpVZt3DwaXTAG5WNLN8wi2GCFMlZgm4BzJ4eSspPS2PZwu3jXyDbFARgZ4sJPyzBQCvY1 WxrCDiB7IxcWTi2LaKK12EL+H8Z4p447dQuGtaYDedvKD2Kx+uYRvIE6/IawaypuP+mH/B0ro 8iSXL+MSLhGdwoUdvPzEwTBxjhgmNCZEa+OVjNR8mpo8dmPAwYPq3RD5/eUHXSU1WSSqk/pVc quN4C6sHAP+NAj30xSlbwMGe86sdhBelMiGdfYCfr/5Lj2awtnsgIapu1s4cBpVCq5IGn3Myr FvuGr71b4odJ2gzfPAFeYvD6RGZ8VmOnojbiZu4IOT7BJDCLn6Z041m7zxffRZt7YBIYBEppi 91Bo4F2 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Mon, 8 May 2017 14:30:03 +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 --- drivers/input/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/input.c b/drivers/input/input.c index 0d204b841575..067a6edd643c 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -1144,7 +1144,7 @@ static int input_devices_seq_show(struct seq_file *seq, void *v) seq_printf(seq, "P: Phys=%s\n", dev->phys ? dev->phys : ""); seq_printf(seq, "S: Sysfs=%s\n", path ? path : ""); seq_printf(seq, "U: Uniq=%s\n", dev->uniq ? dev->uniq : ""); - seq_printf(seq, "H: Handlers="); + seq_puts(seq, "H: Handlers="); list_for_each_entry(handle, &dev->h_list, d_node) seq_printf(seq, "%s ", handle->name);