Coccinelle archive on lore.kernel.org
 help / color / Atom feed
* Re: [Cocci] [PATCH] Coccinelle: kstrdup: Fix typo in warning messages
       [not found] <20190408191432.1269-1-rikard.falkeborn@gmail.com>
@ 2019-04-08 19:19 ` Julia Lawall
  0 siblings, 0 replies; only message in thread
From: Julia Lawall @ 2019-04-08 19:19 UTC (permalink / raw)
  To: Rikard Falkeborn; +Cc: michal.lkml, nicolas.palix, linux-kernel, cocci



On Mon, 8 Apr 2019, Rikard Falkeborn wrote:

> Replace 'kstrdep' with 'kstrdup' in warning messages.
>
> Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>

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
>
>
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20190408191432.1269-1-rikard.falkeborn@gmail.com>
2019-04-08 19:19 ` [Cocci] [PATCH] Coccinelle: kstrdup: Fix typo in warning messages Julia Lawall

Coccinelle archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/cocci/0 cocci/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 cocci cocci/ https://lore.kernel.org/cocci \
		cocci@systeme.lip6.fr cocci@archiver.kernel.org
	public-inbox-index cocci


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/fr.lip6.systeme.cocci


AGPL code for this site: git clone https://public-inbox.org/ public-inbox