Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3225935yba; Mon, 8 Apr 2019 13:59:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyEIl8a3c31pLtuf5hdA3ylxI3LYBfGItHsoFaLNb68ZTSABpKLY6Ek3aAmogELwsMMZdu X-Received: by 2002:a62:4852:: with SMTP id v79mr31946240pfa.72.1554757177159; Mon, 08 Apr 2019 13:59:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554757177; cv=none; d=google.com; s=arc-20160816; b=TvWuQaWsOkvoh3PFLIsAnFtWR8P558pOcj1TrD0eeA5aaBgn7zgM/FvhTfHSyjcqju 6iC4r2Ed6BOWVoOlp5vhZcynuWXxXNkSO4s2yQNWhcJyL5CUwtNPH1jhsQGhH/NbHx0z j0/0guoRAZIUHlgBldLJ874hP5vKaAq4r1375dGD5/ISabsFEw+5vI23gBWgPbsAlb1/ TgHAH70Y/wAqP2Gg10IFxziYT65QI0b30cCKZ7uOlHql9uAiXhalGsPd2uIxp4PoiL0H qt9cdIFw6jZ+XG4ugCVxNke6VbvzDrpyWEg8hIgsGeittTcDVkpze3r3r7/0V68BGe0j +ADQ== 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=WSjG6acEg2QScBWJpgysvSLupmwdq7aOFlcRoKTsQXU=; b=cgxM+THCvBmjJWDHQPL2IKXrX4GUBqWyMyw988VmiOKC2/hKKS/xQfu1xAR+ya7Iwo OziXnIjPlibCySAIx4x9C95D79MoyFV/76yyS/bPy1Mrv64rdhkUUYSSjEiLZ0JFGi8N vytdC5JJdKDYvs/uakZGY9e0bYU6dtHIDaHkyhB4AbMsohQmmfrYvTHjx94oilZi2PUp 7sYKICT96eDrEFbFG1met5hNAZ5MPbOVUvNvJPF/uo3aeqcVxQKhlvGW3R+X3b6co/PO nVox5YQiqL6QBESqJ/V7imCXKkM6Zc4lNfkGsb76nz14Hz0fsCQ36JXoi4PI7hVMiWS2 fJdw== 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 r3si20218656pgp.45.2019.04.08.13.59.18; Mon, 08 Apr 2019 13:59:37 -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 S1726494AbfDHTTp (ORCPT + 99 others); Mon, 8 Apr 2019 15:19:45 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:52161 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726050AbfDHTTo (ORCPT ); Mon, 8 Apr 2019 15:19:44 -0400 X-IronPort-AV: E=Sophos;i="5.60,326,1549926000"; d="scan'208";a="302216733" Received: from abo-75-106-68.mrs.modulonet.fr (HELO hadrien) ([85.68.106.75]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Apr 2019 21:19:42 +0200 Date: Mon, 8 Apr 2019 21:19:41 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Rikard Falkeborn cc: yamada.masahiro@socionext.com, Julia Lawall , Gilles Muller , nicolas.palix@imag.fr, michal.lkml@markovi.net, cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Coccinelle: kstrdup: Fix typo in warning messages In-Reply-To: <20190408191432.1269-1-rikard.falkeborn@gmail.com> Message-ID: References: <20190408191432.1269-1-rikard.falkeborn@gmail.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) 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, 8 Apr 2019, Rikard Falkeborn wrote: > Replace 'kstrdep' with 'kstrdup' in warning messages. > > Signed-off-by: Rikard Falkeborn Acked-by: Julia.Lawall@lip6.fr Thanks for the patch! julia > --- > scripts/coccinelle/api/kstrdup.cocci | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/scripts/coccinelle/api/kstrdup.cocci b/scripts/coccinelle/api/kstrdup.cocci > index 09cba54ed0cf..6d13d54a6ee6 100644 > --- a/scripts/coccinelle/api/kstrdup.cocci > +++ b/scripts/coccinelle/api/kstrdup.cocci > @@ -76,7 +76,7 @@ p1 << r1.p1; > p2 << r1.p2; > @@ > > -cocci.print_main("WARNING opportunity for kstrdep",p1) > +cocci.print_main("WARNING opportunity for kstrdup",p1) > cocci.print_secs("strcpy",p2) > > @script:python depends on org@ > @@ -84,7 +84,7 @@ p1 << r2.p1; > p2 << r2.p2; > @@ > > -cocci.print_main("WARNING opportunity for kstrdep",p1) > +cocci.print_main("WARNING opportunity for kstrdup",p1) > cocci.print_secs("memcpy",p2) > > @script:python depends on report@ > @@ -92,7 +92,7 @@ p1 << r1.p1; > p2 << r1.p2; > @@ > > -msg = "WARNING opportunity for kstrdep (strcpy on line %s)" % (p2[0].line) > +msg = "WARNING opportunity for kstrdup (strcpy on line %s)" % (p2[0].line) > coccilib.report.print_report(p1[0], msg) > > @script:python depends on report@ > @@ -100,5 +100,5 @@ p1 << r2.p1; > p2 << r2.p2; > @@ > > -msg = "WARNING opportunity for kstrdep (memcpy on line %s)" % (p2[0].line) > +msg = "WARNING opportunity for kstrdup (memcpy on line %s)" % (p2[0].line) > coccilib.report.print_report(p1[0], msg) > -- > 2.21.0 > >