* [PATCH] tracing: fix typo in pr_warning() message
@ 2014-09-09 21:49 Luis Henriques
2014-09-09 22:20 ` Joe Perches
0 siblings, 1 reply; 4+ messages in thread
From: Luis Henriques @ 2014-09-09 21:49 UTC (permalink / raw)
To: Steven Rostedt, Ingo Molnar; +Cc: linux-kernel
Replace 'produciton' by 'production'
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
---
kernel/trace/trace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 8a528392b1f4..f3ef80c8914c 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -2028,7 +2028,7 @@ void trace_printk_init_buffers(void)
pr_warning("** trace_printk() being used. Allocating extra memory. **\n");
pr_warning("** **\n");
pr_warning("** This means that this is a DEBUG kernel and it is **\n");
- pr_warning("** unsafe for produciton use. **\n");
+ pr_warning("** unsafe for production use. **\n");
pr_warning("** **\n");
pr_warning("** If you see this message and you are not debugging **\n");
pr_warning("** the kernel, report this immediately to your vendor! **\n");
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] tracing: fix typo in pr_warning() message
2014-09-09 21:49 [PATCH] tracing: fix typo in pr_warning() message Luis Henriques
@ 2014-09-09 22:20 ` Joe Perches
2014-09-10 9:05 ` Luis Henriques
0 siblings, 1 reply; 4+ messages in thread
From: Joe Perches @ 2014-09-09 22:20 UTC (permalink / raw)
To: Luis Henriques; +Cc: Steven Rostedt, Ingo Molnar, linux-kernel
On Tue, 2014-09-09 at 22:49 +0100, Luis Henriques wrote:
> Replace 'produciton' by 'production'
>
> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
> ---
> kernel/trace/trace.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
> index 8a528392b1f4..f3ef80c8914c 100644
> --- a/kernel/trace/trace.c
> +++ b/kernel/trace/trace.c
> @@ -2028,7 +2028,7 @@ void trace_printk_init_buffers(void)
> pr_warning("** trace_printk() being used. Allocating extra memory. **\n");
> pr_warning("** **\n");
> pr_warning("** This means that this is a DEBUG kernel and it is **\n");
> - pr_warning("** unsafe for produciton use. **\n");
> + pr_warning("** unsafe for production use. **\n");
> pr_warning("** **\n");
> pr_warning("** If you see this message and you are not debugging **\n");
> pr_warning("** the kernel, report this immediately to your vendor! **\n");
Perhaps s/pr_warning/pr_warn/ too?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] tracing: fix typo in pr_warning() message
2014-09-09 22:20 ` Joe Perches
@ 2014-09-10 9:05 ` Luis Henriques
2014-09-10 14:06 ` Joe Perches
0 siblings, 1 reply; 4+ messages in thread
From: Luis Henriques @ 2014-09-10 9:05 UTC (permalink / raw)
To: Joe Perches; +Cc: Steven Rostedt, Ingo Molnar, linux-kernel
On Tue, Sep 09, 2014 at 03:20:13PM -0700, Joe Perches wrote:
> On Tue, 2014-09-09 at 22:49 +0100, Luis Henriques wrote:
> > Replace 'produciton' by 'production'
> >
> > Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
> > ---
> > kernel/trace/trace.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
> > index 8a528392b1f4..f3ef80c8914c 100644
> > --- a/kernel/trace/trace.c
> > +++ b/kernel/trace/trace.c
> > @@ -2028,7 +2028,7 @@ void trace_printk_init_buffers(void)
> > pr_warning("** trace_printk() being used. Allocating extra memory. **\n");
> > pr_warning("** **\n");
> > pr_warning("** This means that this is a DEBUG kernel and it is **\n");
> > - pr_warning("** unsafe for produciton use. **\n");
> > + pr_warning("** unsafe for production use. **\n");
> > pr_warning("** **\n");
> > pr_warning("** If you see this message and you are not debugging **\n");
> > pr_warning("** the kernel, report this immediately to your vendor! **\n");
>
> Perhaps s/pr_warning/pr_warn/ too?
If you (and the maintainers) agree, I would rather do that in a
separate commit.
Cheers,
--
Luís
>From 6b3519353b088b5afe903d527f66c6dc18cfe068 Mon Sep 17 00:00:00 2001
From: Luis Henriques <luis.henriques@canonical.com>
Date: Wed, 10 Sep 2014 09:59:13 +0100
Subject: [PATCH] tracing: Replace pr_warning() with pr_warn()
Convert pr_warning() usage to pr_warn().
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
---
kernel/trace/trace.c | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 8a528392b1f4..4df394e878b6 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -2022,19 +2022,19 @@ void trace_printk_init_buffers(void)
/* trace_printk() is for debug use only. Don't use it in production. */
- pr_warning("\n**********************************************************\n");
- pr_warning("** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE **\n");
- pr_warning("** **\n");
- pr_warning("** trace_printk() being used. Allocating extra memory. **\n");
- pr_warning("** **\n");
- pr_warning("** This means that this is a DEBUG kernel and it is **\n");
- pr_warning("** unsafe for produciton use. **\n");
- pr_warning("** **\n");
- pr_warning("** If you see this message and you are not debugging **\n");
- pr_warning("** the kernel, report this immediately to your vendor! **\n");
- pr_warning("** **\n");
- pr_warning("** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE **\n");
- pr_warning("**********************************************************\n");
+ pr_warn("\n**********************************************************\n");
+ pr_warn("** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE **\n");
+ pr_warn("** **\n");
+ pr_warn("** trace_printk() being used. Allocating extra memory. **\n");
+ pr_warn("** **\n");
+ pr_warn("** This means that this is a DEBUG kernel and it is **\n");
+ pr_warn("** unsafe for produciton use. **\n");
+ pr_warn("** **\n");
+ pr_warn("** If you see this message and you are not debugging **\n");
+ pr_warn("** the kernel, report this immediately to your vendor! **\n");
+ pr_warn("** **\n");
+ pr_warn("** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE **\n");
+ pr_warn("**********************************************************\n");
/* Expand the buffers to set size */
tracing_update_buffers();
@@ -5895,7 +5895,7 @@ tracing_init_debugfs_percpu(struct trace_array *tr, long cpu)
snprintf(cpu_dir, 30, "cpu%ld", cpu);
d_cpu = debugfs_create_dir(cpu_dir, d_percpu);
if (!d_cpu) {
- pr_warning("Could not create debugfs '%s' entry\n", cpu_dir);
+ pr_warn("Could not create debugfs '%s' entry\n", cpu_dir);
return;
}
@@ -6049,7 +6049,7 @@ struct dentry *trace_create_file(const char *name,
ret = debugfs_create_file(name, mode, parent, data, fops);
if (!ret)
- pr_warning("Could not create debugfs '%s' entry\n", name);
+ pr_warn("Could not create debugfs '%s' entry\n", name);
return ret;
}
@@ -6068,7 +6068,7 @@ static struct dentry *trace_options_init_dentry(struct trace_array *tr)
tr->options = debugfs_create_dir("options", d_tracer);
if (!tr->options) {
- pr_warning("Could not create debugfs directory 'options'\n");
+ pr_warn("Could not create debugfs directory 'options'\n");
return NULL;
}
@@ -6823,7 +6823,7 @@ __init static int tracer_alloc_buffers(void)
if (trace_boot_clock) {
ret = tracing_set_clock(&global_trace, trace_boot_clock);
if (ret < 0)
- pr_warning("Trace clock %s not defined, going back to default\n",
+ pr_warn("Trace clock %s not defined, going back to default\n",
trace_boot_clock);
}
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] tracing: fix typo in pr_warning() message
2014-09-10 9:05 ` Luis Henriques
@ 2014-09-10 14:06 ` Joe Perches
0 siblings, 0 replies; 4+ messages in thread
From: Joe Perches @ 2014-09-10 14:06 UTC (permalink / raw)
To: Luis Henriques; +Cc: Steven Rostedt, Ingo Molnar, linux-kernel
On Wed, 2014-09-10 at 10:05 +0100, Luis Henriques wrote:
> On Tue, Sep 09, 2014 at 03:20:13PM -0700, Joe Perches wrote:
> > On Tue, 2014-09-09 at 22:49 +0100, Luis Henriques wrote:
> > > Replace 'produciton' by 'production'
[]
> > > diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
[]
> > > @@ -2028,7 +2028,7 @@ void trace_printk_init_buffers(void)
> > > - pr_warning("** unsafe for produciton use. **\n");
> > > + pr_warning("** unsafe for production use. **\n");
[]
> > Perhaps s/pr_warning/pr_warn/ too?
>
> If you (and the maintainers) agree, I would rather do that in a
> separate commit.
Of course.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-09-10 14:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-09 21:49 [PATCH] tracing: fix typo in pr_warning() message Luis Henriques
2014-09-09 22:20 ` Joe Perches
2014-09-10 9:05 ` Luis Henriques
2014-09-10 14:06 ` Joe Perches
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.