linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Coccinelle: kstrdup: Fix typo in warning messages
@ 2019-04-08 19:14 Rikard Falkeborn
  2019-04-08 19:19 ` Julia Lawall
  0 siblings, 1 reply; 3+ messages in thread
From: Rikard Falkeborn @ 2019-04-08 19:14 UTC (permalink / raw)
  To: yamada.masahiro
  Cc: Julia.Lawall, Gilles.Muller, nicolas.palix, michal.lkml, cocci,
	linux-kernel, Rikard Falkeborn

Replace 'kstrdep' with 'kstrdup' in warning messages.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
---
 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Coccinelle: kstrdup: Fix typo in warning messages
  2019-04-08 19:14 [PATCH] Coccinelle: kstrdup: Fix typo in warning messages Rikard Falkeborn
@ 2019-04-08 19:19 ` Julia Lawall
  2019-07-06 12:18   ` [Cocci] " Masahiro Yamada
  0 siblings, 1 reply; 3+ messages in thread
From: Julia Lawall @ 2019-04-08 19:19 UTC (permalink / raw)
  To: Rikard Falkeborn
  Cc: yamada.masahiro, Julia Lawall, Gilles Muller, nicolas.palix,
	michal.lkml, cocci, linux-kernel



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
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Cocci] [PATCH] Coccinelle: kstrdup: Fix typo in warning messages
  2019-04-08 19:19 ` Julia Lawall
@ 2019-07-06 12:18   ` Masahiro Yamada
  0 siblings, 0 replies; 3+ messages in thread
From: Masahiro Yamada @ 2019-07-06 12:18 UTC (permalink / raw)
  To: Julia Lawall
  Cc: Rikard Falkeborn, Michal Marek, Nicolas Palix,
	Linux Kernel Mailing List, cocci

On Tue, Apr 9, 2019 at 4:20 AM Julia Lawall <julia.lawall@lip6.fr> wrote:
>
>
>
> 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


Applied to linux-kbuild.



-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-06 12:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-08 19:14 [PATCH] Coccinelle: kstrdup: Fix typo in warning messages Rikard Falkeborn
2019-04-08 19:19 ` Julia Lawall
2019-07-06 12:18   ` [Cocci] " Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).