2019-01-17 13:38:49

by Andreas Ziegler

[permalink] [raw]
Subject: [PATCH] tracing: uprobes: fix typo in pr_fmt string

The subsystem-specific message prefix for uprobes was also
"trace_kprobe: " instead of "trace_uprobe: " as described in
the original commit message.

Fixes: 7257634135c24 ("tracing/probe: Show subsystem name in messages")
Signed-off-by: Andreas Ziegler <[email protected]>
---
kernel/trace/trace_uprobe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c
index e335576b9411..19a1a8e19062 100644
--- a/kernel/trace/trace_uprobe.c
+++ b/kernel/trace/trace_uprobe.c
@@ -5,7 +5,7 @@
* Copyright (C) IBM Corporation, 2010-2012
* Author: Srikar Dronamraju <[email protected]>
*/
-#define pr_fmt(fmt) "trace_kprobe: " fmt
+#define pr_fmt(fmt) "trace_uprobe: " fmt

#include <linux/ctype.h>
#include <linux/module.h>
--
2.17.1



2019-01-17 15:23:16

by Steven Rostedt

[permalink] [raw]
Subject: Re: [PATCH] tracing: uprobes: fix typo in pr_fmt string

Masami,

Can you give an Acked-by?

Thanks!

-- Steve


On Thu, 17 Jan 2019 14:30:23 +0100
Andreas Ziegler <[email protected]> wrote:

> The subsystem-specific message prefix for uprobes was also
> "trace_kprobe: " instead of "trace_uprobe: " as described in
> the original commit message.
>
> Fixes: 7257634135c24 ("tracing/probe: Show subsystem name in messages")
> Signed-off-by: Andreas Ziegler <[email protected]>
> ---
> kernel/trace/trace_uprobe.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c
> index e335576b9411..19a1a8e19062 100644
> --- a/kernel/trace/trace_uprobe.c
> +++ b/kernel/trace/trace_uprobe.c
> @@ -5,7 +5,7 @@
> * Copyright (C) IBM Corporation, 2010-2012
> * Author: Srikar Dronamraju <[email protected]>
> */
> -#define pr_fmt(fmt) "trace_kprobe: " fmt
> +#define pr_fmt(fmt) "trace_uprobe: " fmt
>
> #include <linux/ctype.h>
> #include <linux/module.h>


2019-01-17 21:08:47

by Joe Perches

[permalink] [raw]
Subject: Re: [PATCH] tracing: uprobes: fix typo in pr_fmt string

On Thu, 2019-01-17 at 14:30 +0100, Andreas Ziegler wrote:
> The subsystem-specific message prefix for uprobes was also
> "trace_kprobe: " instead of "trace_uprobe: " as described in
> the original commit message.
[]
> diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c
[]
> @@ -5,7 +5,7 @@
> * Copyright (C) IBM Corporation, 2010-2012
> * Author: Srikar Dronamraju <[email protected]>
> */
> -#define pr_fmt(fmt) "trace_kprobe: " fmt
> +#define pr_fmt(fmt) "trace_uprobe: " fmt

Perhaps use the more common KBUILD_MODNAME instead

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt



2019-01-17 23:30:09

by Masami Hiramatsu

[permalink] [raw]
Subject: Re: [PATCH] tracing: uprobes: fix typo in pr_fmt string

On Thu, 17 Jan 2019 09:53:16 -0500
Steven Rostedt <[email protected]> wrote:

> Masami,
>
> Can you give an Acked-by?

Of course!

Acked-by: Masami Hiramatsu <[email protected]>

Thank you Andreas!

>
> Thanks!
>
> -- Steve
>
>
> On Thu, 17 Jan 2019 14:30:23 +0100
> Andreas Ziegler <[email protected]> wrote:
>
> > The subsystem-specific message prefix for uprobes was also
> > "trace_kprobe: " instead of "trace_uprobe: " as described in
> > the original commit message.
> >
> > Fixes: 7257634135c24 ("tracing/probe: Show subsystem name in messages")
> > Signed-off-by: Andreas Ziegler <[email protected]>
> > ---
> > kernel/trace/trace_uprobe.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c
> > index e335576b9411..19a1a8e19062 100644
> > --- a/kernel/trace/trace_uprobe.c
> > +++ b/kernel/trace/trace_uprobe.c
> > @@ -5,7 +5,7 @@
> > * Copyright (C) IBM Corporation, 2010-2012
> > * Author: Srikar Dronamraju <[email protected]>
> > */
> > -#define pr_fmt(fmt) "trace_kprobe: " fmt
> > +#define pr_fmt(fmt) "trace_uprobe: " fmt
> >
> > #include <linux/ctype.h>
> > #include <linux/module.h>
>


--
Masami Hiramatsu <[email protected]>