From patchwork Mon May 8 11:21:04 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: 9715995 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 986B66035D for ; Mon, 8 May 2017 11:21:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92DFA205FB for ; Mon, 8 May 2017 11:21:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 875A8268AE; Mon, 8 May 2017 11:21:17 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 29D84205FB for ; Mon, 8 May 2017 11:21:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3BD0E6E20D; Mon, 8 May 2017 11:21:16 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.web.de (mout.web.de [217.72.192.78]) by gabe.freedesktop.org (Postfix) with ESMTPS id CB97C6E210 for ; Mon, 8 May 2017 11:21:14 +0000 (UTC) Received: from [192.168.1.3] ([77.182.37.117]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MWB4X-1dW7Uh2NoH-00XNqk; Mon, 08 May 2017 13:21:06 +0200 Subject: [PATCH 1/2] drm/etnaviv: Use seq_putc() in etnaviv_buffer_dump() From: SF Markus Elfring To: etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Christian Gmeiner , David Airlie , Lucas Stach , Russell King References: <6652b09b-393b-01db-a0d4-de53dce8994e@users.sourceforge.net> Message-ID: Date: Mon, 8 May 2017 13:21:04 +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: <6652b09b-393b-01db-a0d4-de53dce8994e@users.sourceforge.net> Content-Language: en-US X-Provags-ID: V03:K0:VrubOgQ4fFwOgUGdzpdQRBOzP0bn0vDf+eXyXQdkg9F6dneAmx3 /ezzIietWPZV0/xHeFkszznw+N9qlOZomohhGILWIlF7pC1JXdZdOKDsIPQq2s3xLtBiG1c cBY5I8kpR8LmMxhLWokOpH2no/ON0mfyJ0gjtU671EAD9rXeEEQTtkNvTRmPNojGiXIzO0J n8hLLVE8/VsnntN7ZiNPw== X-UI-Out-Filterresults: notjunk:1; V01:K0:bajWgP2E8GI=:Vm0DqIposizCagF4fts9ib uQtg1btsi6JnButyk5MuxdCeIOJkAPu9Zmwz7xPotKkWgkjnd9fG7cgmxHr82Tz1Ipa0tc5F3 WqlO2UInXZTTZYZmMvR4tQrN+eZ4JkTMd3GKjzwklV5pUgdU6vp1rFYtuUsS2YlX5Ln9jgSKQ M4yddpnAWGQbhO7woVMv11f5MQ+0R0W9zWi2zMCuMipii3GxBtxgXdN8zfoFaiCQ/IVJ1C9ZE OchsBJo7Op5Xg9pf1HP7Jtj/dvY77zYNjw4k65CWpl1q32QySLrM+YOK4T4gJe7yOh6ys2rCk edIRrCe3n9myOhgHicFtfikh3xzGTnHc6Vp9pKUdBivk2Z54+Fw0Y9vhACDpp1wgRr/BMzPST D6Pmeo2DsG6kqWEV8+z8qWVq0E23UVDE1nngOAvK0xu1o4cCo3Lt5J5LuyWTWrHT3ZwU8lsVo sVgp77JjbNC/EurX6Zh+33ZXdRKfThmpC8nydaEP8221EhInm1KKL/PPEqCPTd1Fy2G05ZAoL 2sgCyvWdsG65D050kopp4ORjyRgqd7y0s8NsYk3cY0LC8Bm7LA0fwrO/Y5EEokulPWXJMcusG pH8zfsP4pMlUcmdxZlCTYB434f+eBLspqWrwY4pczTFtDpFXFedNHazxMmHk/yVsr5KsU0ouT jrJac4zcOqt5glKHFzF1HRHZeLqF/PDoyLHK4Kpjk/wNmmEJHhN652tj7SdLsbf0iGS8FvS+g C/SR1NC/r9Dbh1vQffrn+rfnpKFSepcaDtsSDgS9AGNsbjEQUULqjeeK+7yA1CGk2ChS3xKX/ O7ZPkS2 Cc: kernel-janitors@vger.kernel.org, LKML X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Mon, 8 May 2017 13:00:28 +0200 Two single characters (line breaks) 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/gpu/drm/etnaviv/etnaviv_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c index 5255278dde56..b4deb26e1e40 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c @@ -182,12 +182,12 @@ static void etnaviv_buffer_dump(struct etnaviv_gpu *gpu, struct seq_file *m) for (i = 0; i < size / 4; i++) { if (i && !(i % 4)) - seq_puts(m, "\n"); + seq_putc(m, '\n'); if (i % 4 == 0) seq_printf(m, "\t0x%p: ", ptr + i); seq_printf(m, "%08x ", *(ptr + i)); } - seq_puts(m, "\n"); + seq_putc(m, '\n'); } static int etnaviv_ring_show(struct etnaviv_gpu *gpu, struct seq_file *m)