public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 3/3] init/calibrate.c: no prefix in logging
@ 2014-05-29  8:14 Fabian Frederick
  2014-05-29 14:43 ` Paul Gortmaker
  0 siblings, 1 reply; 3+ messages in thread
From: Fabian Frederick @ 2014-05-29  8:14 UTC (permalink / raw)
  To: linux-kernel; +Cc: Paul Gortmaker, akpm

define pr_fmt without prefix to avoid any default prefix update

Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 init/calibrate.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/init/calibrate.c b/init/calibrate.c
index fb9be44..169e98d 100644
--- a/init/calibrate.c
+++ b/init/calibrate.c
@@ -4,6 +4,8 @@
  *  Copyright (C) 1991, 1992  Linus Torvalds
  */
 
+#define pr_fmt(fmt) fmt
+
 #include <linux/jiffies.h>
 #include <linux/delay.h>
 #include <linux/init.h>
-- 
1.9.1


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

* Re: [PATCH V2 3/3] init/calibrate.c: no prefix in logging
  2014-05-29  8:14 [PATCH V2 3/3] init/calibrate.c: no prefix in logging Fabian Frederick
@ 2014-05-29 14:43 ` Paul Gortmaker
  2014-05-29 19:55   ` Fabian Frederick
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Gortmaker @ 2014-05-29 14:43 UTC (permalink / raw)
  To: Fabian Frederick; +Cc: linux-kernel, akpm

[[PATCH V2 3/3] init/calibrate.c: no prefix in logging] On 29/05/2014 (Thu 10:14) Fabian Frederick wrote:

> define pr_fmt without prefix to avoid any default prefix update

Again, it isn't clear to me what you are trying to achieve here.
The printk.h header already has the define which you add here.

A general rule for commits is to cover off three points.

1) Describe what the user visible symptom is, i.e. "printk from
calibrate.c are appearing with verbose prefix blah blah..."

2) Describe the underlying reason for the bug/issue, i.e. "This happens
because macro blah comes from foo.h but only when bar is defined."

3) Describe how your fix works and why it is the right/best fix for the
issue, i.e. "Here we introduce blah blah which will ensure ...."

Also, to make life easier for maintainers, you probably want to add a
0/N lead-in (see --cover-letter) which describes what you are trying to
achieve with the whole series, and when you create a v2 of the series,
you need to list in there for the maintainer how v2 differs from v1.

Finally try not to send a v2 within hours of sending a v1 -- give a
chance for the v1 to get looked at 1st; typically at least one day.

Thanks,
Paul.
--

> 
> Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
> ---
>  init/calibrate.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/init/calibrate.c b/init/calibrate.c
> index fb9be44..169e98d 100644
> --- a/init/calibrate.c
> +++ b/init/calibrate.c
> @@ -4,6 +4,8 @@
>   *  Copyright (C) 1991, 1992  Linus Torvalds
>   */
>  
> +#define pr_fmt(fmt) fmt
> +
>  #include <linux/jiffies.h>
>  #include <linux/delay.h>
>  #include <linux/init.h>
> -- 
> 1.9.1
> 

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

* Re: [PATCH V2 3/3] init/calibrate.c: no prefix in logging
  2014-05-29 14:43 ` Paul Gortmaker
@ 2014-05-29 19:55   ` Fabian Frederick
  0 siblings, 0 replies; 3+ messages in thread
From: Fabian Frederick @ 2014-05-29 19:55 UTC (permalink / raw)
  To: Paul Gortmaker; +Cc: linux-kernel, akpm

On Thu, 29 May 2014 10:43:21 -0400
Paul Gortmaker <paul.gortmaker@windriver.com> wrote:

> [[PATCH V2 3/3] init/calibrate.c: no prefix in logging] On 29/05/2014 (Thu 10:14) Fabian Frederick wrote:
> 
> > define pr_fmt without prefix to avoid any default prefix update
> 
> Again, it isn't clear to me what you are trying to achieve here.
> The printk.h header already has the define which you add here.
> 
> A general rule for commits is to cover off three points.
> 
> 1) Describe what the user visible symptom is, i.e. "printk from
> calibrate.c are appearing with verbose prefix blah blah..."
> 
> 2) Describe the underlying reason for the bug/issue, i.e. "This happens
> because macro blah comes from foo.h but only when bar is defined."
> 
> 3) Describe how your fix works and why it is the right/best fix for the
> issue, i.e. "Here we introduce blah blah which will ensure ...."
> 
> Also, to make life easier for maintainers, you probably want to add a
> 0/N lead-in (see --cover-letter) which describes what you are trying to
> achieve with the whole series, and when you create a v2 of the series,
> you need to list in there for the maintainer how v2 differs from v1.
> 
> Finally try not to send a v2 within hours of sending a v1 -- give a
> chance for the v1 to get looked at 1st; typically at least one day.
> 
> Thanks,
> Paul.

Thanks for your help, I'll send more details.

Regards,
Fabian

> --
> 
> > 
> > Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
> > Cc: Andrew Morton <akpm@linux-foundation.org>
> > Signed-off-by: Fabian Frederick <fabf@skynet.be>
> > ---
> >  init/calibrate.c | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/init/calibrate.c b/init/calibrate.c
> > index fb9be44..169e98d 100644
> > --- a/init/calibrate.c
> > +++ b/init/calibrate.c
> > @@ -4,6 +4,8 @@
> >   *  Copyright (C) 1991, 1992  Linus Torvalds
> >   */
> >  
> > +#define pr_fmt(fmt) fmt
> > +
> >  #include <linux/jiffies.h>
> >  #include <linux/delay.h>
> >  #include <linux/init.h>
> > -- 
> > 1.9.1
> > 

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

end of thread, other threads:[~2014-05-29 19:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-29  8:14 [PATCH V2 3/3] init/calibrate.c: no prefix in logging Fabian Frederick
2014-05-29 14:43 ` Paul Gortmaker
2014-05-29 19:55   ` Fabian Frederick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox