Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp596972ybz; Wed, 15 Apr 2020 14:50:12 -0700 (PDT) X-Google-Smtp-Source: APiQypI32o036gmCJ6mAAVCbmf9xbl4gVB9BtLuWW0D8TOrCwxf4WmakIuFhmZz3+IIYi0nQtKnL X-Received: by 2002:a50:ec11:: with SMTP id g17mr27681870edr.343.1586987411948; Wed, 15 Apr 2020 14:50:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586987411; cv=none; d=google.com; s=arc-20160816; b=vqCzlSuN8UHyuEeitbHK0yLlDb+UjkzWJXowPjIie1+XCLPbnWZt0xVVcaLY3d1z0F 723ZeCb0f42w1LuxJAzpnf0ALJ27OJ40spIzL6Hh8sD4gomcEiwV4TgpNxGPtM3iIs7N zy31uB1sBgB+n7henIMdVMC5agG15an3pj7ETn7Pv6OPlHTqKknEm0nIeBRijO6h+AYe sDmXU0fvEqNn3bDppMIsTB3w/dMespmEz/8yyLoS3Og1JKM/9y/T1bACWPdrgn39uJpA jODwWD1wzAg1Ct5tV83fK+xwQ1ovyjaRI8bBn2QH1yJDaFV6w3G+1TEwnwkkEAxg8+Dz AcZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=EYAW4RbJq/LeF2r7usjZkmQ2MGah0fXPWmgTIUZdIsE=; b=j+I6pkgJVbc7EoQJBg7tcequ/MTinFaNz30NxHI74M0B8l9k3tt1uMAbYf/EaPxbED hlxQEtCCr8Opm9V0dqFlnM6Qaqib+6wv+YzI8066k6SSO4G2RHvsgWHFQJgewJ3BoZ4e kro89v2R5aVOAy5zxWUSxosnh53D8ovJd9ptHmPbP6N1P0mW/WiHpE5coK6K2F3oxsPS 0GSJNF/uP+HDTs1cPlwkZqpBflKb2gy9uWmo0L8EWMVoCQQciaWFZsiolgMzJOOuWMLV HJxb1pnso4xtYeLMoIFGVMwxYWOq0W4LYEQKEz5mf79t/2OnrsDIUM1CMwgYEoORyuIw PiuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lw23si1209767ejb.423.2020.04.15.14.49.48; Wed, 15 Apr 2020 14:50:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2504031AbgDNSaP (ORCPT + 99 others); Tue, 14 Apr 2020 14:30:15 -0400 Received: from smtp09.smtpout.orange.fr ([80.12.242.131]:30410 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2503994AbgDNSaK (ORCPT ); Tue, 14 Apr 2020 14:30:10 -0400 Received: from [192.168.42.210] ([93.22.132.55]) by mwinf5d85 with ME id SiW42200V1Bs39H03iW4Yb; Tue, 14 Apr 2020 20:30:06 +0200 X-ME-Helo: [192.168.42.210] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Tue, 14 Apr 2020 20:30:06 +0200 X-ME-IP: 93.22.132.55 Subject: Re: [PATCH] pwm: Add missing '\n' in log messages To: Thierry Reding , paul@crapouillou.net, Joe Perches , Dan Carpenter Cc: u.kleine-koenig@pengutronix.de, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org References: <20200411153528.30130-1-christophe.jaillet@wanadoo.fr> <20200414135827.GB3593749@ulmo> From: Christophe JAILLET Message-ID: Date: Tue, 14 Apr 2020 20:30:04 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200414135827.GB3593749@ulmo> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 14/04/2020 ? 15:58, Thierry Reding a ?crit?: > On Sat, Apr 11, 2020 at 05:35:28PM +0200, Christophe JAILLET wrote: >> Message logged by 'dev_xxx()' or 'pr_xxx()' should end with a '\n'. >> >> Fixes: 3ad1f3a33286 ("pwm: Implement some checks for lowlevel drivers") >> Signed-off-by: Christophe JAILLET >> --- >> drivers/pwm/core.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c >> index 9973c442b455..bca04965bfe6 100644 >> --- a/drivers/pwm/core.c >> +++ b/drivers/pwm/core.c >> @@ -537,7 +537,7 @@ static void pwm_apply_state_debug(struct pwm_device *pwm, >> >> if (!state->enabled && s2.enabled && s2.duty_cycle > 0) >> dev_warn(chip->dev, >> - "requested disabled, but yielded enabled with duty > 0"); >> + "requested disabled, but yielded enabled with duty > 0\n"); >> >> /* reapply the state that the driver reported being configured. */ >> err = chip->ops->apply(chip, pwm, &s1); > I don't think this is strictly necessary any longer since the logging > functions are supposed to add these themselves nowadays. But I like the > consistency of this, so I'll apply this anyway. > > Thanks, > Thierry Hi Thierry, I've sent more or less 10 similar patches against files updated recently, that is to say against files which are actively maintained. I've done it to get feedback on the acceptances rate of such proposals. The goal is not to flood everyone with such patches, but rather to see if adding a new kind of test to checkpatch.pl makes sense. Being able to detect early missing trailing '\n' would help maintainers and patch providers. You are the 2nd person (I've added Paul Cercueil in copy of my reply) who reports that he is thinking that it is no more required to add a '\n'. If you have any pointer about it, it would be much appreciated. It would mean, that either this additional checkpatch test is useless, or maybe that it should be reversed and spot *un*needed '\n'. CJ