* [PATCH] Replace misspelled "PRINTK" with "CONFIG_PRINTK".
@ 2007-03-07 23:38 Robert P. J. Day
2007-03-08 0:08 ` Dave Jones
2007-03-08 1:41 ` Neil Brown
0 siblings, 2 replies; 4+ messages in thread
From: Robert P. J. Day @ 2007-03-07 23:38 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: Andrew Morton
Replace the apparently misspelled preprocessor variable "PRINTK"
with "CONFIG_PRINTK".
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
---
not sure who the official maintainer here is, sorry.
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c
index 5554ada..0c09772 100644
--- a/drivers/md/bitmap.c
+++ b/drivers/md/bitmap.c
@@ -53,7 +53,7 @@
//#define DPRINTK PRINTK /* set this NULL to avoid verbose debug output */
#define DPRINTK(x...) do { } while(0)
-#ifndef PRINTK
+#ifndef CONFIG_PRINTK
# if DEBUG > 0
# define PRINTK(x...) printk(KERN_DEBUG x)
# else
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Replace misspelled "PRINTK" with "CONFIG_PRINTK".
2007-03-07 23:38 [PATCH] Replace misspelled "PRINTK" with "CONFIG_PRINTK" Robert P. J. Day
@ 2007-03-08 0:08 ` Dave Jones
2007-03-08 0:25 ` Robert P. J. Day
2007-03-08 1:41 ` Neil Brown
1 sibling, 1 reply; 4+ messages in thread
From: Dave Jones @ 2007-03-08 0:08 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: Linux Kernel Mailing List, Andrew Morton
On Wed, Mar 07, 2007 at 06:38:32PM -0500, Robert P. J. Day wrote:
>
> Replace the apparently misspelled preprocessor variable "PRINTK"
> with "CONFIG_PRINTK".
this looks wrong.
> diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c
> index 5554ada..0c09772 100644
> --- a/drivers/md/bitmap.c
> +++ b/drivers/md/bitmap.c
> @@ -53,7 +53,7 @@
> //#define DPRINTK PRINTK /* set this NULL to avoid verbose debug output */
> #define DPRINTK(x...) do { } while(0)
>
> -#ifndef PRINTK
> +#ifndef CONFIG_PRINTK
> # if DEBUG > 0
> # define PRINTK(x...) printk(KERN_DEBUG x)
> # else
the intention here is to only define 'PRINTK' if no-one else
has defined it already.
Dave
--
http://www.codemonkey.org.uk
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Replace misspelled "PRINTK" with "CONFIG_PRINTK".
2007-03-08 0:08 ` Dave Jones
@ 2007-03-08 0:25 ` Robert P. J. Day
0 siblings, 0 replies; 4+ messages in thread
From: Robert P. J. Day @ 2007-03-08 0:25 UTC (permalink / raw)
To: Dave Jones; +Cc: Linux Kernel Mailing List, Andrew Morton
On Wed, 7 Mar 2007, Dave Jones wrote:
> On Wed, Mar 07, 2007 at 06:38:32PM -0500, Robert P. J. Day wrote:
> >
> > Replace the apparently misspelled preprocessor variable "PRINTK"
> > with "CONFIG_PRINTK".
>
> this looks wrong.
>
> > diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c
> > index 5554ada..0c09772 100644
> > --- a/drivers/md/bitmap.c
> > +++ b/drivers/md/bitmap.c
> > @@ -53,7 +53,7 @@
> > //#define DPRINTK PRINTK /* set this NULL to avoid verbose debug output */
> > #define DPRINTK(x...) do { } while(0)
> >
> > -#ifndef PRINTK
> > +#ifndef CONFIG_PRINTK
> > # if DEBUG > 0
> > # define PRINTK(x...) printk(KERN_DEBUG x)
> > # else
>
> the intention here is to only define 'PRINTK' if no-one else
> has defined it already.
oops, sorry, i misread that.
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Replace misspelled "PRINTK" with "CONFIG_PRINTK".
2007-03-07 23:38 [PATCH] Replace misspelled "PRINTK" with "CONFIG_PRINTK" Robert P. J. Day
2007-03-08 0:08 ` Dave Jones
@ 2007-03-08 1:41 ` Neil Brown
1 sibling, 0 replies; 4+ messages in thread
From: Neil Brown @ 2007-03-08 1:41 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: Linux Kernel Mailing List, Andrew Morton
On Wednesday March 7, rpjday@mindspring.com wrote:
>
> Replace the apparently misspelled preprocessor variable "PRINTK"
> with "CONFIG_PRINTK".
No, it is meant to be "PRINTK".
It dates way way back before my time, but presumably the idea was you
could -DPRINTK=something and if you didn't do that, it would figure
out what it thought you wanted.
Definitely not meant to be CONFIG_PRINTK.
NeilBrown
>
> Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
>
> ---
>
> not sure who the official maintainer here is, sorry.
>
> diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c
> index 5554ada..0c09772 100644
> --- a/drivers/md/bitmap.c
> +++ b/drivers/md/bitmap.c
> @@ -53,7 +53,7 @@
> //#define DPRINTK PRINTK /* set this NULL to avoid verbose debug output */
> #define DPRINTK(x...) do { } while(0)
>
> -#ifndef PRINTK
> +#ifndef CONFIG_PRINTK
> # if DEBUG > 0
> # define PRINTK(x...) printk(KERN_DEBUG x)
> # else
>
> --
> ========================================================================
> Robert P. J. Day
> Linux Consulting, Training and Annoying Kernel Pedantry
> Waterloo, Ontario, CANADA
>
> http://fsdev.net/wiki/index.php?title=Main_Page
> ========================================================================
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-03-08 1:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-07 23:38 [PATCH] Replace misspelled "PRINTK" with "CONFIG_PRINTK" Robert P. J. Day
2007-03-08 0:08 ` Dave Jones
2007-03-08 0:25 ` Robert P. J. Day
2007-03-08 1:41 ` Neil Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®