Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4489305ybi; Sat, 6 Jul 2019 06:14:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7ePCAqELtzQqTdb7yFarWtF5V98GDoC/WLKqroJEXP6wqKA4YQdTM2w19AVwnjZPRhZMl X-Received: by 2002:a63:1b07:: with SMTP id b7mr10821104pgb.133.1562418884355; Sat, 06 Jul 2019 06:14:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562418884; cv=none; d=google.com; s=arc-20160816; b=0/zR9HlWasfzRQwnUpWqVLhJOt/8ifMynSEwB/wvjHh0tYuHOy5tcB1DrLXR2ICCCG 1O/1FDcqeDirb/qmnW7MzIPpXsdK0kXJr2K/hUe3IFJL+ndZ7Y2rN0nSKxrPpOdFYGmH fyhVASYbVqlL3JhmjUX/st9SYCf/63c/sh+B2RopsaUZAllNgaiHnAqSYnBaP98JhArB jIGADJOuYzCsshNB/RJZxfQngxmcKksmJubXsrC3E0X8Q8xLuWSXIhJR/W22Me6dGgRF LZ9t+cc57PYrNSJjk7ObBWcVH3Brvym1EjulQAhbd+w1ZZmtbmQ+inTpcoM3wDaFIwVc 4jcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=e2JdIb42SpLrSPeYe2x3rwr5/vj30CwDJrGofHRtPcQ=; b=tWTtuF3Rd0YNXZpO3o/AfevIW4zRFKzjbMaQ2LXxxn92brgaGsHTK+Ti0JfMBBSGx2 wNguehHBj4T3nQlh5O/lZK/LPCLswkeZZBee10c2vi/7amBLMJs9NdnBx1J0iGqese5p 4uJ4NfbhG3qgsSA/sOJ5QByPRQj4Z0gQbB5p2VslrXZGfNBw08s/gECa4XgHKTj8CTiB dBCAC4fMgAzDogRkYizdi47xEWTIJaOV2L74f6RN2QsdNEFUXdZGi1bDkp7vit/XnLRe xullkZglxFsxOH15RO81r1iWG9C81+3+pkuL4lUL1O6fBxwEruMhdzigpf+o6UounhUH S3jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=OpeCV7Dp; 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 f8si11886272pgd.496.2019.07.06.06.14.16; Sat, 06 Jul 2019 06:14:44 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=OpeCV7Dp; 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 S1726362AbfGFNNr (ORCPT + 99 others); Sat, 6 Jul 2019 09:13:47 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:59775 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726181AbfGFNNr (ORCPT ); Sat, 6 Jul 2019 09:13:47 -0400 Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com [209.85.222.46]) (authenticated) by conssluserg-01.nifty.com with ESMTP id x66DDh6Q009895 for ; Sat, 6 Jul 2019 22:13:43 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com x66DDh6Q009895 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1562418823; bh=e2JdIb42SpLrSPeYe2x3rwr5/vj30CwDJrGofHRtPcQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=OpeCV7DpVXFEJaJiflMkdBarlsrDKlZFWi2wrEiXlacaGP6vrbLtnUQDIhhEgIiuv F39wDpxAhFUGQm+jb8xOFpiiVDFt3j72F1CCLsACBwxPC1iye94x+ViOTKTChshHFV SYB0q3HIuwbwH+8aiJ1R9mzJWVPuAq7fv+7oWCuVEhRJ1PWL5oMMHVa5EiOwdbnoQd EMK5MvgB1LSipVXpyjaxTKAcX8H19DF+et8dXcsFDZVYt/uYhGN2cTSWc9B8b6I+O1 le5ryMRW6p7/6rFahQCsBRS8/Z3ZaX7uRi838j68sPuuA5NlGKxROcK8FHXVu2InIl AqOn+Zv7O6q+g== X-Nifty-SrcIP: [209.85.222.46] Received: by mail-ua1-f46.google.com with SMTP id j21so3178185uap.2 for ; Sat, 06 Jul 2019 06:13:43 -0700 (PDT) X-Gm-Message-State: APjAAAWOqBNXPYiYpN5ys636J/KjV7xIFrnY7sERRICd6GybLTIlyrol kSHjWHbEybWR9t7RnIEoc1TnRbwCF2b/cQLeqDY= X-Received: by 2002:a9f:2265:: with SMTP id 92mr4965431uad.121.1562418822502; Sat, 06 Jul 2019 06:13:42 -0700 (PDT) MIME-Version: 1.0 References: <1553321671-27749-1-git-send-email-wen.yang99@zte.com.cn> <308f5571-68f3-7505-d5ad-59ee68091959@web.de> In-Reply-To: <308f5571-68f3-7505-d5ad-59ee68091959@web.de> From: Masahiro Yamada Date: Sat, 6 Jul 2019 22:13:06 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [Cocci] [PATCH 1/5] Coccinelle: put_device: Adjust a message construction To: Markus Elfring Cc: Julia Lawall , Gilles Muller , Michal Marek , Nicolas Palix , Wen Yang , Yi Wang , cocci@systeme.lip6.fr, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 13, 2019 at 5:59 PM 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. > > Signed-off-by: Markus Elfring > --- Applied to linux-kbuild. > 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 > > _______________________________________________ > Cocci mailing list > Cocci@systeme.lip6.fr > https://systeme.lip6.fr/mailman/listinfo/cocci -- Best Regards Masahiro Yamada