From patchwork Sat Oct 15 20:54:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9377949 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 4C02D607FD for ; Sat, 15 Oct 2016 20:56:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 39BB729337 for ; Sat, 15 Oct 2016 20:56:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2D25C29355; Sat, 15 Oct 2016 20:56:01 +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 C4E4C29337 for ; Sat, 15 Oct 2016 20:56:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932312AbcJOUzm (ORCPT ); Sat, 15 Oct 2016 16:55:42 -0400 Received: from mout.web.de ([212.227.17.11]:54748 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755999AbcJOUzU (ORCPT ); Sat, 15 Oct 2016 16:55:20 -0400 Received: from [192.168.1.2] ([77.181.180.27]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0M1GAG-1coS0o3Di4-00t9dC; Sat, 15 Oct 2016 22:54:50 +0200 Subject: [PATCH 3/3] ARM-OMAP2+: pm-debug: Use seq_putc() in two functions To: linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, Kevin Hilman , Russell King , Tony Lindgren References: Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Message-ID: <3b54e75d-eeee-5cce-5733-89b2750ab8c7@users.sourceforge.net> Date: Sat, 15 Oct 2016 22:54:49 +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: X-Provags-ID: V03:K0:E7VkHXbd3XLjwCZ4zSG+EYJIU7/HhFw+H3RthjfJuP+zTxD6oLK pYEVz/W7aSN2gWoQXbEJfvOehFg9SKhB258y33rmi2fpAgnXu8cXXPdUNluAzEXMubEZgej TwLpY0js3YIPYw27PVFxTN/zynO+mUDYtBdJsRReShCCA9VZzxRth6ckpozJW1KfeObznTV bdWODUpbhkAUvv3JIQX6g== X-UI-Out-Filterresults: notjunk:1; V01:K0:JYB+OdZqC9k=:5LOPimzo8zRyT5A9GzI34h PuI6ZlT93olhROGhqJ8Vf+j6qo3sbguRCzKfkP5MIahSouSZQ+CwJx0edQM9pQf7RsClnWRx9 r10RzvNzHLsGtCP8VIsB+FMomJw7OEQY1UAMAwGU9TlXJRqeH6q/vEFr8QPtSBCUjdIj/DvdK xNS+VA26jvaulCt5Bei+YPiOPBNdpeVivQSJiXgGvYbzK0wQ/A2JtNctv0WLMkAlAWQFrrR/A IruSYYdwNHPtWu1RyuEPmU1k+eCOwp4SKpkWM7Hzi6PYXnLBTcNp1Wmi4U0M1vaMYSw0YLmJY fOVa5IZQ5m1uPFIp9qYtjxSM2BZdTG0NGK8i3cfsRiQO1D7n2UuVcYRuXxog+iTrNlOG4v39C gI8mhgZSgkM9HBLnjt824rzGEItkZi8vRI5O0T8ons0kJc7b5A3K6FXIYlpRg7NZJ9Hxu4qQE eSVeNXA8/nF1nYiYXx8UXdv/eoHCM2PLY4DZUN3avWC2Oyfn1wbBiXt2cqs6v6VqV2jLG2Vrd 3VIl9brDvnIN4iWZfteE+z/pGDm4kfnAQNmL3KeHo1auhxM0iJLaAPAYx+V4lTlzRtSC/f+6n Y7FrGSns047z4Tqp2Sq6yxeb1Xz/8uCdt/ubB3Nr1GhaE4bkOtmpflt0H1J6S6jI6xyxg5Iqc jrr6gFAPEEQEyCKJwpLUvOJ3+dpZlFkW+aXZyx7YYd5uoZhXCiNM9aKX7tesonIrXaYCyPy02 FZ3Re9t6L2agZomZnbWsCJZDRRbVzpN/gt3jXE6HgKAlz6OLQsgOH3NqOeFlL27u/L28MpdGs dV2VfoJ Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sat, 15 Oct 2016 22:30:44 +0200 A single character (line break) should be put into a sequence at the end. Thus use the corresponding function "seq_putc". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- arch/arm/mach-omap2/pm-debug.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c index 0b33986..003a6cb 100644 --- a/arch/arm/mach-omap2/pm-debug.c +++ b/arch/arm/mach-omap2/pm-debug.c @@ -114,8 +114,7 @@ static int pwrdm_dbg_show_counter(struct powerdomain *pwrdm, void *user) seq_printf(s, ",RET-MEMBANK%d-OFF:%d", i + 1, pwrdm->ret_mem_off_counter[i]); - seq_printf(s, "\n"); - + seq_putc(s, '\n'); return 0; } @@ -138,7 +137,7 @@ static int pwrdm_dbg_show_timer(struct powerdomain *pwrdm, void *user) seq_printf(s, ",%s:%lld", pwrdm_state_names[i], pwrdm->state_timer[i]); - seq_printf(s, "\n"); + seq_putc(s, '\n'); return 0; }