Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4983945yba; Mon, 13 May 2019 03:22:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNRhLm+GDBg0d7ZsiBkTYzQv6qvw/PrUMeK3X2SfitH6kGvGLT4oZGinSSGhK4pyskPdV3 X-Received: by 2002:a63:3fc1:: with SMTP id m184mr29587645pga.222.1557742954254; Mon, 13 May 2019 03:22:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557742954; cv=none; d=google.com; s=arc-20160816; b=O2p/Wq7XHe0f71f6//MEYbsbgsbN0keEL5Q1loKdWn25m3/OJh6BSRZELm6ajWGBDM Zsl1mHG1JE3e0pAPClhVpRXTXRm7CjddJs7UHo03jS+nM1o4nzj9hgm1sk0T2kWJHJho mm+ILo1hlh6HEmzXGZFEK2bm6GmtZlrIFvqBAj12TZpTtG5llYanSj7G9XUzvG5pfgO/ zERC43nwyzQaLfFd4GIg1KpAD5xQAnQ6jMPLoqc8nyyuERssJZzSG9G/xlOMvCf/QM9l G4XS8I0LcalxCTVbNfSDK/i7pDGWZv4hCgdLGq0VP4oh3bukW7GlyVp06eM4kZQSHxtO wn2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=psJVWiMSp4Gwubm8XbZj28p3MLovjo0JfWZ8rsd/hhw=; b=kCNYkD7369sdn5l3hoFwbfr1vyq6AfXD7oxaDl9vj0vsbRSDy7ZVeoG08iMgFmqChj UgQOLGEbvvZUXFEfrVr9kr2htlmg74645Z5EarwD+cOol/T2NqL81YzZFbiq9s2QK80o w2qrOXBmEJX6oauOkWAWVYBpKa4lAv9tbKm2mqhQgD/hTfL3txIo4NuM3P3ubQoOInBN iDO++Rkx1XEuWYZbn/3oQXRe+par9jDb5MHngRXAqpMKwCmMINqmK8Tt0P94GyAGNqg2 mjT2nRu2pg2VxpRuLOu8s3ueIaQXCrkKPfknOs9svvUTu9VwU+KiuQwziwpbQDpOHJsM Z7Aw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si16859751pgf.479.2019.05.13.03.22.17; Mon, 13 May 2019 03:22:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728561AbfEMJfr (ORCPT + 99 others); Mon, 13 May 2019 05:35:47 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:3260 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726103AbfEMJfq (ORCPT ); Mon, 13 May 2019 05:35:46 -0400 X-IronPort-AV: E=Sophos;i="5.60,465,1549926000"; d="scan'208";a="382868419" Received: from vaio-julia.rsr.lip6.fr ([132.227.76.33]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 May 2019 11:35:44 +0200 Date: Mon, 13 May 2019 11:35:40 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Markus Elfring cc: Gilles Muller , Masahiro Yamada , Michal Marek , Nicolas Palix , Wen Yang , cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org, Yi Wang Subject: Re: [PATCH 1/5] Coccinelle: put_device: Adjust a message construction In-Reply-To: <308f5571-68f3-7505-d5ad-59ee68091959@web.de> Message-ID: References: <1553321671-27749-1-git-send-email-wen.yang99@zte.com.cn> <308f5571-68f3-7505-d5ad-59ee68091959@web.de> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 13 May 2019, Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 7 May 2019 11:20:48 +0200 > > The Linux coding style tolerates long string literals so that > the provided information can be easier found also by search tools > like grep. > Thus simplify a message construction in a SmPL rule by concatenating text > with two plus operators less. I don't know python very well. Is there any way to unindent, so that the string doesn't exceed 80 characters, or at least no so much? On the other hand, I would have much preferred the original msg = code. I don't understand why it is so offensive. julia > > Signed-off-by: Markus Elfring > --- > scripts/coccinelle/free/put_device.cocci | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) > > diff --git a/scripts/coccinelle/free/put_device.cocci b/scripts/coccinelle/free/put_device.cocci > index c9f071b0a0ab..3ebebc064f10 100644 > --- a/scripts/coccinelle/free/put_device.cocci > +++ b/scripts/coccinelle/free/put_device.cocci > @@ -42,11 +42,10 @@ p1 << search.p1; > p2 << search.p2; > @@ > > -coccilib.report.print_report(p2[0], "ERROR: missing put_device; " > - + "call of_find_device_by_node on line " > - + p1[0].line > - + ", but without a corresponding object release " > - + "within this function.") > +coccilib.report.print_report(p2[0], > + "ERROR: missing put_device; call of_find_device_by_node on line " > + + p1[0].line > + + ", but without a corresponding object release within this function.") > > @script:python depends on org@ > p1 << search.p1; > -- > 2.21.0 > >